Fix ARM EHABI compact model 1 and 2 without handlerdata.
authorLogan Chien <tzuhsiang.chien@gmail.com>
Tue, 2 Jul 2013 12:43:27 +0000 (12:43 +0000)
committerLogan Chien <tzuhsiang.chien@gmail.com>
Tue, 2 Jul 2013 12:43:27 +0000 (12:43 +0000)
commit0a39e264330c5f6eb9e5e9e60d276613985e178d
tree391a9b207e34dc8e6a1aca645c536bba3f21a27b
parente5cb25f860bb4ffe6908004e6a04c8d21b7d2a98
Fix ARM EHABI compact model 1 and 2 without handlerdata.

According to ARM EHABI section 9.2, if the
__aeabi_unwind_cpp_pr1() or __aeabi_unwind_cpp_pr2() is
used, then the handler data must be emitted after the unwind
opcodes.  The handler data consists of several words, and
should be terminated by zero.

In case that the .handlerdata directive is not specified by
the programmer, we should emit zero to terminate the handler
data.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185422 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/MCTargetDesc/ARMELFStreamer.cpp
test/MC/ARM/eh-compact-pr1.s