[llvm-commits] [llvm] r148191 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp

Duncan Sands baldrick at free.fr
Sat Jan 14 09:16:48 PST 2012


Author: baldrick
Date: Sat Jan 14 11:16:48 2012
New Revision: 148191

URL: http://llvm.org/viewvc/llvm-project?rev=148191&view=rev
Log:
Speculatively revert commit 148175 (rafael), to see if this fixes
non-determinism in the 32 bit dragonegg buildbot.  Original commit
message:
Only emit the Leh_func_endN symbol when needed.

Modified:
    llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp

Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp?rev=148191&r1=148190&r2=148191&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp Sat Jan 14 11:16:48 2012
@@ -142,14 +142,12 @@
 
   Asm->OutStreamer.EmitCFIEndProc();
 
-  if (!shouldEmitPersonality)
-    return;
-
   Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("eh_func_end",
                                                 Asm->getFunctionNumber()));
 
   // Map all labels and get rid of any dead landing pads.
   MMI->TidyLandingPads();
 
-  EmitExceptionTable();
+  if (shouldEmitPersonality)
+    EmitExceptionTable();
 }





More information about the llvm-commits mailing list