diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-01-17 04:19:20 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-01-17 04:19:20 +0000 |
commit | cbda0e255ddec6638182b38e7c85e0ecefe7203c (patch) | |
tree | 4334e371cf0a5714b3abb931eb4c39d27747305b | |
parent | c120957339e4bda15f9606ab95bcb7f3b20746b4 (diff) | |
download | bcm5719-llvm-cbda0e255ddec6638182b38e7c85e0ecefe7203c.tar.gz bcm5719-llvm-cbda0e255ddec6638182b38e7c85e0ecefe7203c.zip |
Add 148175 back. I am unable to reproduce any non determinism in a dragonegg
or clang bootstrap.
I will keep an eye on the bots.
Original message:
Only emit the Leh_func_endN symbol when needed.
llvm-svn: 148283
-rw-r--r-- | llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp b/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp index 8ed4f4c43a7..d975f1f97be 100644 --- a/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp +++ b/llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp @@ -142,12 +142,14 @@ void DwarfCFIException::EndFunction() { Asm->OutStreamer.EmitCFIEndProc(); + if (!shouldEmitPersonality) + return; + Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("eh_func_end", Asm->getFunctionNumber())); // Map all labels and get rid of any dead landing pads. MMI->TidyLandingPads(); - if (shouldEmitPersonality) - EmitExceptionTable(); + EmitExceptionTable(); } |