summaryrefslogtreecommitdiff
path: root/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2011-04-24 19:00:34 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2011-04-24 19:00:34 +0000
commit7ed673244784e16cac58d69e5a7010fda8fe92bd (patch)
tree065684f9ac6f7f772b8e5f268ac8711d56d453e3 /lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
parentdac4b9267bc4e61de9237c622cd5b145768302fc (diff)
downloadllvm-7ed673244784e16cac58d69e5a7010fda8fe92bd.tar.gz
llvm-7ed673244784e16cac58d69e5a7010fda8fe92bd.tar.bz2
llvm-7ed673244784e16cac58d69e5a7010fda8fe92bd.tar.xz
Synchronize the conditions for producing a .cfi_startproc and a .cfi_endproc.
Fixes PR9787. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@130115 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/AsmPrinter/DwarfCFIException.cpp')
-rw-r--r--lib/CodeGen/AsmPrinter/DwarfCFIException.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp b/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
index 8dc01e5872..d3a4ec592b 100644
--- a/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
+++ b/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",