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

Rafael Espindola rafael.espindola at gmail.com
Sun Apr 24 12:55:34 PDT 2011


Author: rafael
Date: Sun Apr 24 14:55:34 2011
New Revision: 130116

URL: http://llvm.org/viewvc/llvm-project?rev=130116&view=rev
Log:
Simplify the logic. Noticed by aKor.

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=130116&r1=130115&r2=130116&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp Sun Apr 24 14:55:34 2011
@@ -128,8 +128,7 @@
 void DwarfCFIException::EndFunction() {
   if (!shouldEmitMoves && !shouldEmitTable) return;
 
-  if (shouldEmitMoves || shouldEmitTable)
-    Asm->OutStreamer.EmitCFIEndProc();
+  Asm->OutStreamer.EmitCFIEndProc();
 
   Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("eh_func_end",
                                                 Asm->getFunctionNumber()));





More information about the llvm-commits mailing list