diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-04-24 19:00:34 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-04-24 19:00:34 +0000 |
commit | 5c54ecc9afabce83c52788d410d1927fd8a700ac (patch) | |
tree | 6b2275a8a8476136c56768b648fc658c1f70cf58 /llvm/lib | |
parent | d47a12a4e2d1399d08ebe91cc012239b55cdee24 (diff) | |
download | bcm5719-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')
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp | 2 |
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", |