ARM: make sure backend is consistent about exception handling method.
authorTim Northover <tnorthover@apple.com>
Wed, 18 Nov 2015 21:10:39 +0000 (21:10 +0000)
committerTim Northover <tnorthover@apple.com>
Wed, 18 Nov 2015 21:10:39 +0000 (21:10 +0000)
commitc931f35508d5a7eb6337f5c8845f470afb4da6a6
tree3bb40e1d8ff248581c28e33c7b806bea97fc010e
parent54225a9153715dfd9a14f226bdb734476cf11759
ARM: make sure backend is consistent about exception handling method.

It turns out we decide whether to use SjLj exceptions or some alternative in
two separate places in the backend, and they disagreed with each other. This
led to inconsistent code and is generally a terrible idea.

So make them consistent and add an assert that they *do* match (unfortunately
MCAsmInfo isn't available in opt, so it can't be used to initialise the CodeGen
version directly).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@253502 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/ARM/ARMSubtarget.cpp
lib/Target/ARM/MCTargetDesc/ARMMCAsmInfo.cpp
test/CodeGen/ARM/eh-resume-darwin.ll
test/CodeGen/ARM/sjljehprepare-lower-empty-struct.ll
test/CodeGen/Thumb/thumb-shrink-wrapping.ll