diff options
author | George Rimar <grimar@accesssoftek.com> | 2016-09-23 10:12:56 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2016-09-23 10:12:56 +0000 |
commit | a3485271867deb7c8d7e5b92bcddf56818fd9586 (patch) | |
tree | d207a9618a3aa7034fe6dd6bd821599c343aa9ab /llvm/lib/DebugInfo/DWARF/DWARFContext.cpp | |
parent | fee9078dcd77a067eaad1a5f59f9529faca4376b (diff) | |
download | bcm5719-llvm-a3485271867deb7c8d7e5b92bcddf56818fd9586.tar.gz bcm5719-llvm-a3485271867deb7c8d7e5b92bcddf56818fd9586.zip |
Revert r282235 "[llvm-dwarfdump] - Teach dwarfdump to dump gdb-index section."
It broke BB:
http://lab.llvm.org:8011/builders/clang-x64-ninja-win7/builds/15856
llvm-svn: 282238
Diffstat (limited to 'llvm/lib/DebugInfo/DWARF/DWARFContext.cpp')
-rw-r--r-- | llvm/lib/DebugInfo/DWARF/DWARFContext.cpp | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp index 1a0b7e568de..e8ea71b325a 100644 --- a/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp +++ b/llvm/lib/DebugInfo/DWARF/DWARFContext.cpp @@ -256,12 +256,6 @@ void DWARFContext::dump(raw_ostream &OS, DIDumpType DumpType, bool DumpEH) { } } - if ((DumpType == DIDT_All || DumpType == DIDT_GdbIndex) && - !getGdbIndexSection().empty()) { - OS << "\n.gnu_index contents:\n"; - getGdbIndex().dump(OS); - } - if (DumpType == DIDT_All || DumpType == DIDT_AppleNames) dumpAccelSection(OS, "apple_names", getAppleNamesSection(), getStringSection(), isLittleEndian()); @@ -301,16 +295,6 @@ const DWARFUnitIndex &DWARFContext::getTUIndex() { return *TUIndex; } -DWARFGdbIndex &DWARFContext::getGdbIndex() { - if (GdbIndex) - return *GdbIndex; - - DataExtractor GdbIndexData(getGdbIndexSection(), true /*LE*/, 0); - GdbIndex = llvm::make_unique<DWARFGdbIndex>(); - GdbIndex->parse(GdbIndexData); - return *GdbIndex; -} - const DWARFDebugAbbrev *DWARFContext::getDebugAbbrev() { if (Abbrev) return Abbrev.get(); @@ -734,7 +718,6 @@ DWARFContextInMemory::DWARFContextInMemory(const object::ObjectFile &Obj, .Case("apple_objc", &AppleObjCSection.Data) .Case("debug_cu_index", &CUIndexSection) .Case("debug_tu_index", &TUIndexSection) - .Case("gdb_index", &GdbIndexSection) // Any more debug info sections go here. .Default(nullptr); if (SectionData) { |