summaryrefslogtreecommitdiff
path: root/tools/llvm-readobj
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2014-02-08 23:17:08 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2014-02-08 23:17:08 +0000
commit804bd9d73627a3f0cdf30223ab65a8ce7e302bab (patch)
treed6ead493bd605e102bbba8747356d049ffe8d454 /tools/llvm-readobj
parent91ec991b45cd16b73e3394ee2479592d716d68bd (diff)
tools: handle out-of-line personality 0 decoding
In some cases it is possible to have a personality 0 unwinding opcodes in the extab (such as when .handlerdata is used in the assembly). Simply decode the 3 opcodes for that case. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@201030 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/llvm-readobj')
-rw-r--r--tools/llvm-readobj/ARMEHABIPrinter.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/llvm-readobj/ARMEHABIPrinter.h b/tools/llvm-readobj/ARMEHABIPrinter.h
index fae3b6d894a..6f0797b0763 100644
--- a/tools/llvm-readobj/ARMEHABIPrinter.h
+++ b/tools/llvm-readobj/ARMEHABIPrinter.h
@@ -435,7 +435,7 @@ void PrinterContext<ET>::PrintExceptionTable(const Elf_Shdr *IT,
switch (PersonalityIndex) {
case AEABI_UNWIND_CPP_PR0:
- llvm_unreachable("Personality 0 should be compact inline!");
+ PrintOpcodes(Contents->data() + TableEntryOffset, 3, 1);
break;
case AEABI_UNWIND_CPP_PR1:
case AEABI_UNWIND_CPP_PR2: