[all-commits] [llvm/llvm-project] d797c2: [DebugInfo] -fdebug-prefix-map: handle '#line "fil...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Sun Aug 14 20:58:38 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d797c2ffdb591d10de2964907962aaacb2e360ca
https://github.com/llvm/llvm-project/commit/d797c2ffdb591d10de2964907962aaacb2e360ca
Author: Fangrui Song <i at maskray.me>
Date: 2022-08-14 (Sun, 14 Aug 2022)
Changed paths:
M llvm/include/llvm/MC/MCDwarf.h
M llvm/lib/MC/MCContext.cpp
M llvm/test/MC/ELF/debug-hash-file.s
Log Message:
-----------
[DebugInfo] -fdebug-prefix-map: handle '#line "file"' for asm source
`getContext().setMCLineTableRootFile` (from D62074) sets `RootFile.Name` to
`FirstCppHashFilename`. `RootFile.Name` is not processed by -fdebug-prefix-map
and will go to DW_TAG_compile_unit's DT_AT_name and DW_TAG_label's
DW_AT_decl_file. Remap `RootFile.Name`.
Fix another issue reported by https://github.com/llvm/llvm-project/issues/56609
Reviewed By: #debug-info, dblaikie, raj.khem
Differential Revision: https://reviews.llvm.org/D131848
More information about the All-commits
mailing list