Fix really stupid ARM EHABI info generation bug: we should not emit
authorAnton Korobeynikov <asl@math.spbu.ru>
Wed, 14 Nov 2012 19:13:30 +0000 (19:13 +0000)
committerAnton Korobeynikov <asl@math.spbu.ru>
Wed, 14 Nov 2012 19:13:30 +0000 (19:13 +0000)
commitb619a4138d6d03a983a57f39783f6fa05fd4799c
treeb62ef49448abc38f67f6f332affb48cd3b3881e2
parent754e396c6506ce658a843cfb0b6d9e134a3fd57d
Fix really stupid ARM EHABI info generation bug: we should not emit
eh table and handler data if there are no landing pads in the function.
Patch by Logan Chien with some cleanups from me.

llvm-svn: 167945
llvm/lib/CodeGen/AsmPrinter/ARMException.cpp
llvm/test/CodeGen/ARM/ehabi-no-landingpad.ll [new file with mode: 0644]