diff options
author | Pavel Labath <labath@google.com> | 2018-05-14 14:13:20 +0000 |
---|---|---|
committer | Pavel Labath <labath@google.com> | 2018-05-14 14:13:20 +0000 |
commit | 2a6afe5f87a08e1df0bed97edf8c4ab497dd9bff (patch) | |
tree | c923b01eebfe155bb14573c336b5a1b3da3ffb12 /llvm/test/DebugInfo/Generic/debug-names-name-collisions.ll | |
parent | ded3dae331b8344677225de77e5ac0bfcd96438a (diff) | |
download | bcm5719-llvm-2a6afe5f87a08e1df0bed97edf8c4ab497dd9bff.tar.gz bcm5719-llvm-2a6afe5f87a08e1df0bed97edf8c4ab497dd9bff.zip |
[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
llvm-svn: 332246
Diffstat (limited to 'llvm/test/DebugInfo/Generic/debug-names-name-collisions.ll')
-rw-r--r-- | llvm/test/DebugInfo/Generic/debug-names-name-collisions.ll | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/DebugInfo/Generic/debug-names-name-collisions.ll b/llvm/test/DebugInfo/Generic/debug-names-name-collisions.ll index e5d65b4bd70..60d9725e700 100644 --- a/llvm/test/DebugInfo/Generic/debug-names-name-collisions.ll +++ b/llvm/test/DebugInfo/Generic/debug-names-name-collisions.ll @@ -1,5 +1,5 @@ ; REQUIRES: object-emission -; RUN: %llc_dwarf -accel-tables=Dwarf -filetype=obj -o %t < %s +; RUN: %llc_dwarf -accel-tables=Dwarf -dwarf-linkage-names=All -filetype=obj -o %t < %s ; RUN: llvm-dwarfdump -debug-names %t | FileCheck %s ; RUN: llvm-dwarfdump -debug-names -verify %t | FileCheck --check-prefix=VERIFY %s |