forked from OSchip/llvm-project
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:
parent
b38b0ad095
commit
327e1a386c
|
@ -352,7 +352,7 @@ bool X86SharedAsmPrinter::doFinalization(Module &M) {
|
||||||
|
|
||||||
O << "\n";
|
O << "\n";
|
||||||
|
|
||||||
if (TAI->doesSupportExceptionHandling() && MMI) {
|
if (ExceptionHandling && TAI->doesSupportExceptionHandling() && MMI) {
|
||||||
// Add the (possibly multiple) personalities to the set of global values.
|
// Add the (possibly multiple) personalities to the set of global values.
|
||||||
const std::vector<Function *>& Personalities = MMI->getPersonalities();
|
const std::vector<Function *>& Personalities = MMI->getPersonalities();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue