summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
diff options
context:
space:
mode:
authorSpyridoula Gravani <sgravani@apple.com>2017-06-14 00:17:55 +0000
committerSpyridoula Gravani <sgravani@apple.com>2017-06-14 00:17:55 +0000
commite41823bb894165a504c21b139a81445f6f55d4df (patch)
treeb04f20f5b73882b653ce7745ba89f67c05061ad6 /llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
parent41def9b72c104408f2711dbfc82b27098c705fa0 (diff)
downloadbcm5719-llvm-e41823bb894165a504c21b139a81445f6f55d4df.tar.gz
bcm5719-llvm-e41823bb894165a504c21b139a81445f6f55d4df.zip
Added partial verification for .apple_names accelerator table in llvm-dwarfdump output.
This patch adds code which verifies that each bucket in the .apple_names accelerator table is either empty or has a valid hash index. Differential Revision: https://reviews.llvm.org/D34177 llvm-svn: 305344
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFContext.cpp')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFContext.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
index fb48253b2ad..ff9230d9d18 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
@@ -678,8 +678,13 @@ bool DWARFContext::verify(raw_ostream &OS, DIDumpType DumpType) {
if (!verifier.handleDebugLine())
Success = false;
}
+ if (DumpType == DIDT_All || DumpType == DIDT_AppleNames) {
+ if (!verifier.handleAppleNames())
+ Success = false;
+ }
return Success;
}
+
const DWARFUnitIndex &DWARFContext::getCUIndex() {
if (CUIndex)
return *CUIndex;
OpenPOWER on IntegriCloud