aboutsummaryrefslogtreecommitdiff
path: root/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
commiteef7b6219ebe5d0ded0be4adb3003055fa8a63c4 (patch)
treee61ae4017a7f1403a7d09efc78e915a504837167 /tools/llvm-objdump/llvm-objdump.h
parent717a142823f84bd3aa958755ead1d991860ca8f4 (diff)
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169415 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-objdump/llvm-objdump.h')
-rw-r--r--tools/llvm-objdump/llvm-objdump.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/llvm-objdump/llvm-objdump.h b/tools/llvm-objdump/llvm-objdump.h
index aa71b77c8a..9f5a8c3db9 100644
--- a/tools/llvm-objdump/llvm-objdump.h
+++ b/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();