[PATCH] D131749: [MCDwarf] Respect -fdebug-prefix-map= for generated assembly debug info (DWARF v5)
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 11 23:18:01 PDT 2022
MaskRay created this revision.
MaskRay added reviewers: dblaikie, JDevlieghere, probinson, raj.khem.
Herald added subscribers: StephenFan, hiraditya, emaste.
Herald added a project: All.
MaskRay requested review of this revision.
Herald added a reviewer: jdoerfert.
Herald added subscribers: llvm-commits, sstefan1.
Herald added a project: LLVM.
For generated assembly debug info, MCDwarfLineTableHeader::CompilationDir is an
unmapped path set in MCContext::setGenDwarfRootFile. Remap it.
The destination path is supposed to be absolute. But if it is relative, for
DW_AT_label (not produced by GNU assembler), the DW_AT_decl_file will look like
`src_root/src_root/file.s`.
Fix https://github.com/llvm/llvm-project/issues/56609
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D131749
Files:
llvm/include/llvm/MC/MCContext.h
llvm/include/llvm/MC/MCDwarf.h
llvm/lib/MC/MCContext.cpp
llvm/lib/MC/MCDwarf.cpp
llvm/test/MC/ELF/debug-prefix-map.s
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131749.452084.patch
Type: text/x-patch
Size: 5818 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220812/32343697/attachment.bin>
More information about the llvm-commits
mailing list