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.

llvm-svn: 42008
This commit is contained in:
Bill Wendling 2007-09-16 19:21:08 +00:00
parent b38b0ad095
commit 327e1a386c
1 changed files with 1 additions and 1 deletions

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();