summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit5c54ecc9afabce83c52788d410d1927fd8a700ac (patch)
tree6b2275a8a8476136c56768b648fc658c1f70cf58 /llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
parentd47a12a4e2d1399d08ebe91cc012239b55cdee24 (diff)
downloadbcm5719-llvm-5c54ecc9afabce83c52788d410d1927fd8a700ac.tar.gz
bcm5719-llvm-5c54ecc9afabce83c52788d410d1927fd8a700ac.zip
Synchronize the conditions for producing a .cfi_startproc and a .cfi_endproc.
Fixes PR9787. llvm-svn: 130115
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp2
1 files changed, 1 insertions, 1 deletions
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",
OpenPOWER on IntegriCloud