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

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


Author: rafael
Date: Sun Apr 24 14:00:34 2011
New Revision: 130115

URL: http://llvm.org/viewvc/llvm-project?rev=130115&view=rev
Log:
Synchronize the conditions for producing a .cfi_startproc and a .cfi_endproc.
Fixes PR9787.

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





More information about the llvm-commits mailing list