summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2012-01-14 02:36:51 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2012-01-14 02:36:51 +0000
commitdfde7631fa0a2753ec871bb1dd6b9adf53452313 (patch)
tree3ab78bc882297c56757dfaab42e61bf314d0edac
parent59ac4fb706ae6e5d61bc692dd4bfb43273a891e1 (diff)
downloadbcm5719-llvm-dfde7631fa0a2753ec871bb1dd6b9adf53452313.tar.gz
bcm5719-llvm-dfde7631fa0a2753ec871bb1dd6b9adf53452313.zip
Only emit the Leh_func_endN symbol when needed.
llvm-svn: 148175
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp6
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();
}
OpenPOWER on IntegriCloud