OSDN Git Service

[CodeGen/AccelTable]: Handle -dwarf-linkage-names=Abstract correctly
authorPavel Labath <labath@google.com>
Mon, 14 May 2018 14:13:20 +0000 (14:13 +0000)
committerPavel Labath <labath@google.com>
Mon, 14 May 2018 14:13:20 +0000 (14:13 +0000)
commit3f8354c90eff16a5bfc9b050c98473959539d0b0
treef214cc1a60c682b560125606290d31f7067e1778
parent8d9ab7e57d5fc9dd4ecf3a3ff6b1304aa13693de
[CodeGen/AccelTable]: Handle -dwarf-linkage-names=Abstract correctly

Summary:
If we are not emitting a linkage name in the .debug_info sections, we
should not add it into the index either. This makes sure our index is
consistent with the actual debug info.

I am also explicitly setting the --dwarf-linkage-names=All in the
name-collsions test as that one would now fail on targets where this
defaults to "Abstract" (in fact, it would have failed already if there
wasn't a bug in the DWARF verifier, which I fix as well).

Reviewers: probinson, aprantl, JDevlieghere

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D46748

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332246 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
lib/CodeGen/AsmPrinter/DwarfDebug.cpp
lib/DebugInfo/DWARF/DWARFVerifier.cpp
test/DebugInfo/Generic/debug-names-linkage-name.ll [new file with mode: 0644]
test/DebugInfo/Generic/debug-names-name-collisions.ll