Follow-up to patch r41999. Make the conditional that emits the personality stub

match the conditional that turns on exception handling emittion in the asm
printer.



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42008 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Bill Wendling 2007-09-16 19:21:08 +00:00
parent 118cd9dbba
commit bd626b885f

View File

@ -352,7 +352,7 @@ bool X86SharedAsmPrinter::doFinalization(Module &M) {
O << "\n";
if (TAI->doesSupportExceptionHandling() && MMI) {
if (ExceptionHandling && TAI->doesSupportExceptionHandling() && MMI) {
// Add the (possibly multiple) personalities to the set of global values.
const std::vector<Function *>& Personalities = MMI->getPersonalities();