https://bugs.llvm.org/show_bug.cgi?id=42345
Bug ID: 42345
Summary: DW_TAG_label for asm can have wrong source location
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: enhancement
Priority: P
Component: MC
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Noticed in passing while messing with other debug-info stuff lately:
For compiling a .s file with the -g option, we emit DW_TAG_label entries
for labels in the assembler source. The source locations for these will
always use the physical line in the .s file for DW_AT_decl_line, even if
there are #line directives in the file. When we produce the .debug_line
section (implicit .loc directives) we use the info from #line if it's there.
This is easily seen if you look at llvm/test/MC/ELF/debug-hash-file.s
where the label's DW_AT_decl_file uses the filespec from the #line but
the DW_AT_decl_line is from the physical file.
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs