mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-24 19:52:54 +01:00
Only emit the Leh_func_endN symbol when needed.
llvm-svn: 148175
This commit is contained in:
parent
4bf8728f07
commit
a4e515db51
@ -142,12 +142,14 @@ void DwarfCFIException::EndFunction() {
|
|||||||
|
|
||||||
Asm->OutStreamer.EmitCFIEndProc();
|
Asm->OutStreamer.EmitCFIEndProc();
|
||||||
|
|
||||||
|
if (!shouldEmitPersonality)
|
||||||
|
return;
|
||||||
|
|
||||||
Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("eh_func_end",
|
Asm->OutStreamer.EmitLabel(Asm->GetTempSymbol("eh_func_end",
|
||||||
Asm->getFunctionNumber()));
|
Asm->getFunctionNumber()));
|
||||||
|
|
||||||
// Map all labels and get rid of any dead landing pads.
|
// Map all labels and get rid of any dead landing pads.
|
||||||
MMI->TidyLandingPads();
|
MMI->TidyLandingPads();
|
||||||
|
|
||||||
if (shouldEmitPersonality)
|
EmitExceptionTable();
|
||||||
EmitExceptionTable();
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user