summaryrefslogtreecommitdiff
path: root/lib/DebugInfo/DWARFContext.cpp
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2013-09-19 23:43:46 +0000
committerDavid Blaikie <dblaikie@gmail.com>2013-09-19 23:43:46 +0000
commit5cfcb3677ade67e563f2746bce67904a9c0d842b (patch)
tree5d6f8c809dfa83c848e6baf5f77cfd0bae5723b9 /lib/DebugInfo/DWARFContext.cpp
parent0bb2c300a339531b5df3e8c12dbed4e8770e2833 (diff)
downloadllvm-5cfcb3677ade67e563f2746bce67904a9c0d842b.tar.gz
llvm-5cfcb3677ade67e563f2746bce67904a9c0d842b.tar.bz2
llvm-5cfcb3677ade67e563f2746bce67904a9c0d842b.tar.xz
DebugInfo: constrain gnu pubnames test further
Ensures that the pubnames entries actually refer to the intended entities. This test could be more flexible if there was a way to do multiline FileCheck matches with captures (in that way the test wouldn't need to have hardcoded offset values and would thus be resilient to changes in the layout of the DIEs in this CU). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191055 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo/DWARFContext.cpp')
-rw-r--r--lib/DebugInfo/DWARFContext.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/DebugInfo/DWARFContext.cpp b/lib/DebugInfo/DWARFContext.cpp
index c87855e530..db0d21f411 100644
--- a/lib/DebugInfo/DWARFContext.cpp
+++ b/lib/DebugInfo/DWARFContext.cpp
@@ -136,8 +136,8 @@ void DWARFContext::dump(raw_ostream &OS, DIDumpType DumpType) {
PubIndexEntryDescriptor desc(pubNames.getU8(&offset));
OS << format("0x%8.8x ", dieRef)
<< format("%-8s", dwarf::GDBIndexEntryLinkageString(desc.Linkage))
- << ' ' << dwarf::GDBIndexEntryKindString(desc.Kind) << ' '
- << pubNames.getCStr(&offset) << "\n";
+ << ' ' << dwarf::GDBIndexEntryKindString(desc.Kind) << " \""
+ << pubNames.getCStr(&offset) << "\"\n";
}
}