summaryrefslogtreecommitdiffstats
path: root/llvm/tools/llvm-objdump/llvm-objdump.h
diff options
context:
space:
mode:
authorMichael J. Spencer <bigcheesegs@gmail.com>2012-12-05 20:12:35 +0000
committerMichael J. Spencer <bigcheesegs@gmail.com>2012-12-05 20:12:35 +0000
commit0c6ec48d0b79932fd2156b5f07529f4589c4f544 (patch)
tree8ec756e8818d7afd26f848214ebc052ab56fbfe5 /llvm/tools/llvm-objdump/llvm-objdump.h
parentfa8e8c5193a9a5f6de28a391aaca0b728135f87b (diff)
downloadbcm5719-llvm-0c6ec48d0b79932fd2156b5f07529f4589c4f544.tar.gz
bcm5719-llvm-0c6ec48d0b79932fd2156b5f07529f4589c4f544.zip
Add dump of Win64 EH unwind data.
The new command line option -unwind-info dumps the Win64 EH unwind data to the console. This is a nice feature if you need to debug generated EH data (e.g. from LLVM). Includes a test case. Initial patch by João Matos, extensions and rework by Kai Nacke. llvm-svn: 169415
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.h')
-rw-r--r--llvm/tools/llvm-objdump/llvm-objdump.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/tools/llvm-objdump/llvm-objdump.h b/llvm/tools/llvm-objdump/llvm-objdump.h
index aa71b77c8ab..9f5a8c3db97 100644
--- a/llvm/tools/llvm-objdump/llvm-objdump.h
+++ b/llvm/tools/llvm-objdump/llvm-objdump.h
@@ -17,12 +17,21 @@
namespace llvm {
+namespace object {
+ class COFFObjectFile;
+ class RelocationRef;
+}
+class error_code;
+
extern cl::opt<std::string> TripleName;
extern cl::opt<std::string> ArchName;
// Various helper functions.
+bool error(error_code ec);
+bool RelocAddressLess(object::RelocationRef a, object::RelocationRef b);
void DumpBytes(StringRef bytes);
void DisassembleInputMachO(StringRef Filename);
+void printCOFFUnwindInfo(const object::COFFObjectFile* o);
class StringRefMemoryObject : public MemoryObject {
virtual void anchor();
OpenPOWER on IntegriCloud