Synchronize the conditions for producing a .cfi_startproc and a .cfi_endproc.
authorRafael Espindola <rafael.espindola@gmail.com>
Sun, 24 Apr 2011 19:00:34 +0000 (19:00 +0000)
committerRafael Espindola <rafael.espindola@gmail.com>
Sun, 24 Apr 2011 19:00:34 +0000 (19:00 +0000)
Fixes PR9787.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130115 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/DwarfCFIException.cpp

index 8dc01e5872e7a32552f21b0ca3a7bc2e1fb473d9..d3a4ec592b11b12d8e9e7c7d20db372f9426a9aa 100644 (file)
@@ -128,7 +128,7 @@ void DwarfCFIException::BeginFunction(const MachineFunction *MF) {
 void DwarfCFIException::EndFunction() {
   if (!shouldEmitMoves && !shouldEmitTable) return;
 
-  if (shouldEmitMoves)
+  if (shouldEmitMoves || shouldEmitTable)
     Asm->OutStreamer.EmitCFIEndProc();
 
   Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("eh_func_end",