summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
diff options
context:
space:
mode:
authorSpyridoula Gravani <sgravani@apple.com>2017-07-20 02:06:52 +0000
committerSpyridoula Gravani <sgravani@apple.com>2017-07-20 02:06:52 +0000
commit364b5352346f292d55363555556f4f1ec2fe971f (patch)
tree810c8b6cea8756b961ef6c2e72581e13d4395a15 /llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
parent7af8fa41d37253ce633d41af5b4e916dbfc5cae6 (diff)
downloadbcm5719-llvm-364b5352346f292d55363555556f4f1ec2fe971f.tar.gz
bcm5719-llvm-364b5352346f292d55363555556f4f1ec2fe971f.zip
[DWARF] Added check that verifies that no abbreviation declaration has more than one attribute with the same name.
SUMMARY This patch adds a verification check on the abbreviation declarations in the .debug_abbrev section. The check makes sure that no abbreviation declaration has more than one attributes with the same name. Differential Revision: https://reviews.llvm.org/D35643 llvm-svn: 308579
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFContext.cpp')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFContext.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
index 88efcd8f49c..1b45ca9e20d 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
@@ -418,6 +418,7 @@ DWARFDie DWARFContext::getDIEForOffset(uint32_t Offset) {
bool DWARFContext::verify(raw_ostream &OS, DIDumpType DumpType) {
bool Success = true;
DWARFVerifier verifier(OS, *this);
+ Success &= verifier.handleDebugAbbrev();
if (DumpType == DIDT_All || DumpType == DIDT_Info) {
if (!verifier.handleDebugInfo())
Success = false;
OpenPOWER on IntegriCloud