OSDN Git Service

tools: support decoding ARM EHABI opcodes in readobj
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 21 Jan 2014 02:33:15 +0000 (02:33 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 21 Jan 2014 02:33:15 +0000 (02:33 +0000)
commitd28c094c802ed90f951c8c7100b8617b7d426daa
tree5949ddf5a433df6f2591523161547a5b19d23da6
parente502a6aad38cccb861eac7dfdde543e4ff248b9f
tools: support decoding ARM EHABI opcodes in readobj

Add support to llvm-readobj to decode the actual opcodes.  The ARM EHABI opcodes
are a variable length instruction set that describe the operations required for
properly unwinding stack frames.

The primary motivation for this change is to ease the creation of tests for the
ARM EHABI object emission as well as the unwinding directive handling in the ARM
IAS.

Thanks to Logan Chien for an extra test case!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199708 91177308-0d34-0410-b5e6-96231b3b80d8
test/MC/ARM/eh-directive-unwind_raw.s
test/tools/llvm-readobj/ARM/unwind.s
tools/llvm-readobj/ARMEHABIPrinter.h