[llvm-commits] [llvm] r148175 - /llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
Rafael Espindola
rafael.espindola at gmail.com
Fri Jan 13 18:36:51 PST 2012
Author: rafael
Date: Fri Jan 13 20:36:51 2012
New Revision: 148175
URL: http://llvm.org/viewvc/llvm-project?rev=148175&view=rev
Log:
Only emit the Leh_func_endN symbol when needed.
Modified:
llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
Modified: llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp?rev=148175&r1=148174&r2=148175&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp (original)
+++ llvm/trunk/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp Fri Jan 13 20:36:51 2012
@@ -142,12 +142,14 @@
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();
}
More information about the llvm-commits
mailing list