diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2012-01-14 02:36:51 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2012-01-14 02:36:51 +0000 |
commit | da223448043e860d1f997b6a72f35c9d4da7ea29 (patch) | |
tree | e163c087735d3d079bad64b6cd2125cb0af01c3d /lib/CodeGen | |
parent | 3c58ba8ea7ec097d69d7f7be5930a4a4d7405a18 (diff) | |
download | external_llvm-da223448043e860d1f997b6a72f35c9d4da7ea29.zip external_llvm-da223448043e860d1f997b6a72f35c9d4da7ea29.tar.gz external_llvm-da223448043e860d1f997b6a72f35c9d4da7ea29.tar.bz2 |
Only emit the Leh_func_endN symbol when needed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148175 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen')
-rw-r--r-- | lib/CodeGen/AsmPrinter/DwarfCFIException.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp b/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp index 8ed4f4c..d975f1f 100644 --- a/lib/CodeGen/AsmPrinter/DwarfCFIException.cpp +++ b/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(); } |