aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2007-09-16 19:21:08 +0000
committerBill Wendling <isanbard@gmail.com>2007-09-16 19:21:08 +0000
commit319cd95ba898339254c961816d4ea5a3c8702c91 (patch)
tree0fb653c51d31a9194cf2dc92a0571f2180850184 /lib
parentb17a7a2a959a354241ddf6f8e744078b3f75a347 (diff)
downloadexternal_llvm-319cd95ba898339254c961816d4ea5a3c8702c91.zip
external_llvm-319cd95ba898339254c961816d4ea5a3c8702c91.tar.gz
external_llvm-319cd95ba898339254c961816d4ea5a3c8702c91.tar.bz2
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
Diffstat (limited to 'lib')
-rw-r--r--lib/Target/X86/X86AsmPrinter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86AsmPrinter.cpp b/lib/Target/X86/X86AsmPrinter.cpp
index 7049cf1..8584049 100644
--- a/lib/Target/X86/X86AsmPrinter.cpp
+++ b/lib/Target/X86/X86AsmPrinter.cpp
@@ -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();