mirror of
https://github.com/RPCS3/llvm.git
synced 2025-01-08 13:00:50 +00:00
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
This commit is contained in:
parent
3c58ba8ea7
commit
da22344804
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user