summaryrefslogtreecommitdiffstats
path: root/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
diff options
context:
space:
mode:
authorSpyridoula Gravani <sgravani@apple.com>2017-07-18 01:00:26 +0000
committerSpyridoula Gravani <sgravani@apple.com>2017-07-18 01:00:26 +0000
commitf6bd788ddaabf2e350c38fddfe1841e43b1114ae (patch)
tree84a1ccc2c4398bcf7329082f34eec6d523de335d /llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
parent52465615d47a2593afe15390b4c4e2019f67fed9 (diff)
downloadbcm5719-llvm-f6bd788ddaabf2e350c38fddfe1841e43b1114ae.tar.gz
bcm5719-llvm-f6bd788ddaabf2e350c38fddfe1841e43b1114ae.zip
[DWARF] Modification of code for the verification of .debug_info section.
Summary: This patch modifies the handleDebugInfo() function so that we verify the contents of each unit in the .debug_info section only if its header has been successfully verified. This change will allow for more/different verification checks depending on the type of the unit since from dwarf5, the .debug_info section may consist of different types of units. Subscribers: aprantl Differential Revision: https://reviews.llvm.org/D35521 llvm-svn: 308245
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFContext.cpp')
-rw-r--r--llvm/lib/DebugInfo/DWARF/DWARFContext.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
index 96114758e18..495e09fbae3 100644
--- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
+++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp
@@ -414,8 +414,6 @@ DWARFDie DWARFContext::getDIEForOffset(uint32_t Offset) {
bool DWARFContext::verify(raw_ostream &OS, DIDumpType DumpType) {
bool Success = true;
DWARFVerifier verifier(OS, *this);
- if (!verifier.handleDebugInfoUnitHeaderChain())
- Success = false;
if (DumpType == DIDT_All || DumpType == DIDT_Info) {
if (!verifier.handleDebugInfo())
Success = false;
OpenPOWER on IntegriCloud