Skip to content

can't use clang -g to assemble .s file with .file directive #12112

Closed
@llvmbot

Description

@llvmbot
Bugzilla Link 11740
Resolution FIXED
Resolved on Apr 19, 2016 19:48
Version trunk
OS Linux
Blocks llvm/llvm-bugzilla-archive#24345
Reporter LLVM Bugzilla Contributor
CC @compnerd

Extended Description

$ cat x.s
.file "x.ll"
$ clang -g x.s -c -o x.o
x.s:1:2: error: input can't have .file dwarf directives when -g is used to generate dwarf debug info for assembly code
.file "x.ll"
^

Yes, I'd like to pass -g to the compiler even when its input is a .s file. Even if the compiler isn't generating debug info so to speak. Please don't error on this!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclangClang issues not falling into any other category

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions