[llvm-commits] [llvm] r42008 - /llvm/trunk/lib/Target/X86/X86AsmPrinter.cpp

Bill Wendling isanbard at gmail.com
Sun Sep 16 12:21:09 PDT 2007


Author: void
Date: Sun Sep 16 14:21:08 2007
New Revision: 42008

URL: http://llvm.org/viewvc/llvm-project?rev=42008&view=rev
Log:
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.


Modified:
    llvm/trunk/lib/Target/X86/X86AsmPrinter.cpp

Modified: llvm/trunk/lib/Target/X86/X86AsmPrinter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86AsmPrinter.cpp?rev=42008&r1=42007&r2=42008&view=diff

==============================================================================
--- llvm/trunk/lib/Target/X86/X86AsmPrinter.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86AsmPrinter.cpp Sun Sep 16 14:21:08 2007
@@ -352,7 +352,7 @@
 
     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();
 





More information about the llvm-commits mailing list