summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-objdump/llvm-objdump.h
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2015-12-18 18:51:08 +0000
committerPete Cooper <peter_cooper@apple.com>2015-12-18 18:51:08 +0000
commit6c97f4c7d7570fd79695ba822456c3dbe48c752a (patch)
tree7a3b19f20a2d0efa19ff51a9ef08e6a5d254f9c0 /llvm/tools/llvm-objdump/llvm-objdump.h
parenta45c0e0d4ec2c93aad4c095b5b99974abfeef0af (diff)
downloadbcm5719-llvm-6c97f4c7d7570fd79695ba822456c3dbe48c752a.tar.gz
bcm5719-llvm-6c97f4c7d7570fd79695ba822456c3dbe48c752a.zip
Improve DWARFDebugFrame::parse to also handle __eh_frame.
LLVM MC has single methods which can handle the output of EH frame and DWARF CIE's and FDE's. This code improves DWARFDebugFrame::parse to do the same for parsing. This also allows llvm-objdump to support the --dwarf=frames option which objdump supports. This option dumps the .eh_frame section using the new code in DWARFDebugFrame::parse. http://reviews.llvm.org/D15535 Reviewed by Rafael Espindola. llvm-svn: 256008
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.h')
-rw-r--r--llvm/tools/llvm-objdump/llvm-objdump.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/llvm-objdump/llvm-objdump.h b/llvm/tools/llvm-objdump/llvm-objdump.h
index f74ed010d1d..7303c3a0418 100644
--- a/llvm/tools/llvm-objdump/llvm-objdump.h
+++ b/llvm/tools/llvm-objdump/llvm-objdump.h
@@ -10,6 +10,7 @@
#define LLVM_TOOLS_LLVM_OBJDUMP_LLVM_OBJDUMP_H
#include "llvm/ADT/StringRef.h"
+#include "llvm/DebugInfo/DIContext.h"
#include "llvm/Support/CommandLine.h"
#include "llvm/Support/DataTypes.h"
@@ -53,6 +54,7 @@ extern cl::opt<bool> SectionContents;
extern cl::opt<bool> SymbolTable;
extern cl::opt<bool> UnwindInfo;
extern cl::opt<bool> PrintImmHex;
+extern cl::opt<DIDumpType> DwarfDumpType;
// Various helper functions.
void error(std::error_code ec);
OpenPOWER on IntegriCloud