From 98052537f0fd0e627b92704f6a13b4d84d7971e8 Mon Sep 17 00:00:00 2001 From: Pete Cooper Date: Fri, 18 Dec 2015 19:45:38 +0000 Subject: Revert "Improve DWARFDebugFrame::parse to also handle __eh_frame." This reverts commit r256008. Its breaking multiple buildbots, although works for me locally. llvm-svn: 256013 --- llvm/tools/llvm-objdump/llvm-objdump.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp') diff --git a/llvm/tools/llvm-objdump/llvm-objdump.cpp b/llvm/tools/llvm-objdump/llvm-objdump.cpp index 970fc617ccb..d46ea38d1d1 100644 --- a/llvm/tools/llvm-objdump/llvm-objdump.cpp +++ b/llvm/tools/llvm-objdump/llvm-objdump.cpp @@ -22,7 +22,6 @@ #include "llvm/ADT/StringExtras.h" #include "llvm/ADT/Triple.h" #include "llvm/CodeGen/FaultMaps.h" -#include "llvm/DebugInfo/DWARF/DWARFContext.h" #include "llvm/MC/MCAsmInfo.h" #include "llvm/MC/MCContext.h" #include "llvm/MC/MCDisassembler.h" @@ -177,11 +176,6 @@ cl::opt cl::opt PrintFaultMaps("fault-map-section", cl::desc("Display contents of faultmap section")); -cl::opt llvm::DwarfDumpType( - "dwarf", cl::init(DIDT_Null), cl::desc("Dump of dwarf debug sections:"), - cl::values(clEnumValN(DIDT_Frames, "frames", ".debug_frame"), - clEnumValEnd)); - static StringRef ToolName; namespace { @@ -1578,11 +1572,6 @@ static void DumpObject(const ObjectFile *o) { printRawClangAST(o); if (PrintFaultMaps) printFaultMaps(o); - if (DwarfDumpType != DIDT_Null) { - std::unique_ptr DICtx(new DWARFContextInMemory(*o)); - // Dump the complete DWARF structure. - DICtx->dump(outs(), DwarfDumpType, true /* DumpEH */); - } } /// @brief Dump each object file in \a a; @@ -1675,8 +1664,7 @@ int main(int argc, char **argv) { && !(DylibId && MachOOpt) && !(ObjcMetaData && MachOOpt) && !(FilterSections.size() != 0 && MachOOpt) - && !PrintFaultMaps - && DwarfDumpType == DIDT_Null) { + && !PrintFaultMaps) { cl::PrintHelpMessage(); return 2; } -- cgit v1.2.3