http://llvm.org/bugs/show_bug.cgi?id=9995
Summary: Malformed DWARF from llc?
Product: libraries
Version: 2.9
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P
Component: Core LLVM classes
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
It looks like llc might be producing malformed DWARF debug info. I'm no DWARF
expert, so I'm having trouble diagnosing it. Here's an example: compile this
to LLVM IR with "clang -c -g -emit-llvm":
void bar();
void foo() { bar(); }
Then generate an object file via "llc" and "as". Running "dumpbin" on the
resulting object file (linux elf-64) gives errors like:
AT of 16359 (0x3fe7) is unknown to dwarfdump. Continuing.
...
dwarfdump ERROR: dwarf_srclines: DW_DLE_ATTR_FORM_BAD (114)
There aren't any issues if the object file is generated directly by clang. But
I need to preserve debug info from LLVM IR through llc (scenario: use clang to
compile library code with debug info, generate additional IR and link it with
library IR, then finish codegen with llc and as). Thanks in advance for any
suggestions.
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs