ARM IAS: support .personalityindex
authorSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 21 Jan 2014 02:33:02 +0000 (02:33 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Tue, 21 Jan 2014 02:33:02 +0000 (02:33 +0000)
commit27276437ae2169640633f9961620a8d0b19deb39
treeddf687afc199181ee2b861d4aceb4bb9dc0d9bdb
parent9fe8c2b5274f9692e56488e0047af2215063ddab
ARM IAS: support .personalityindex

The .personalityindex directive is equivalent to the .personality directive with
the ARM EABI personality with the specific index (0, 1, 2).  Both of these
directives indicate personality routines, so enhance the personality directive
handling to take into account personalityindex.

Bonus fix: flush the UnwindContext at the beginning of a new function.

Thanks to Logan Chien for additional tests!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@199706 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/MC/MCStreamer.h
lib/Target/ARM/AsmParser/ARMAsmParser.cpp
lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
lib/Target/ARM/MCTargetDesc/ARMUnwindOpAsm.cpp
test/MC/ARM/eh-directive-personalityindex-diagnostics.s [new file with mode: 0644]
test/MC/ARM/eh-directive-personalityindex.s [new file with mode: 0644]