From eef7b6219ebe5d0ded0be4adb3003055fa8a63c4 Mon Sep 17 00:00:00 2001 From: "Michael J. Spencer" Date: Wed, 5 Dec 2012 20:12:35 +0000 Subject: Add dump of Win64 EH unwind data. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- tools/llvm-objdump/llvm-objdump.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'tools/llvm-objdump/llvm-objdump.h') 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 TripleName; extern cl::opt 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(); -- cgit v1.2.3