From 5c54ecc9afabce83c52788d410d1927fd8a700ac Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sun, 24 Apr 2011 19:00:34 +0000 Subject: Synchronize the conditions for producing a .cfi_startproc and a .cfi_endproc. Fixes PR9787. llvm-svn: 130115 --- llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp') diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp index 8dc01e5872e..d3a4ec592b1 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp @@ -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", -- cgit v1.2.3