llvm-project/llvm/lib/DebugInfo
Fangrui Song 3329cec2f7 [DebugInfo] Don't join DW_AT_comp_dir and directories[0] for DWARF v5 line tables
DWARF v5 6.2.4 The Line Number Program Header says:

> The first entry is the current directory of the compilation. Each additional
> path entry is either a full path name or is relative to the current directory of
> the compilation.

When forming a path, relative DW_AT_comp_dir and directories[0] are not supposed
to be joined together. Fix getFileNameByIndex to special case DWARF v5 DirIdx == 0.

Reviewed By: #debug-info, dblaikie

Differential Revision: https://reviews.llvm.org/D131804
2022-08-12 14:01:52 -07:00
..
CodeView [CodeView] Add function to get size in bytes for TypeIndex/CVType. 2022-08-08 08:48:23 +01:00
DWARF [DebugInfo] Don't join DW_AT_comp_dir and directories[0] for DWARF v5 line tables 2022-08-12 14:01:52 -07:00
GSYM [llvm] Don't use Optional::hasValue (NFC) 2022-06-20 10:38:12 -07:00
MSF ManagedStatic: remove many straightforward uses in llvm 2022-07-10 10:29:15 +02:00
PDB [llvm] LLVM_FALLTHROUGH => [[fallthrough]]. NFC 2022-08-08 11:24:15 -07:00
Symbolize [Symbolizer] Implement pc element in symbolizing filter. 2022-08-08 11:08:48 -07:00
CMakeLists.txt