[LLVMbugs] [Bug 3140] New: .file directive is not emitted

bugzilla-daemon at cs.uiuc.edu bugzilla-daemon at cs.uiuc.edu
Fri Nov 28 06:02:43 PST 2008


           Summary: .file directive is not emitted
           Product: tools
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: llc
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: rafael.espindola at gmail.com
                CC: llvmbugs at cs.uiuc.edu, nlewycky at google.com

Unlike gcc, llvm won't print .file directives. This is an easy way to get very
minimal debugging support at -g0.

If a file t.c is compiled with gcc the very first line in the assembly is

        .file   "t.c"

If it is compiled with llvm-gcc, the bitcode has

; ModuleID = 't.c'

but that is not propagated to the assembler. Is it safe to assume that we can
always print the ModelueID as a .file directive?

Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

More information about the llvm-bugs mailing list