mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-19 09:57:42 +00:00
Small simplification by moving early continue earlier.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@252237 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
edb273f9ae
commit
7c482bb053
@ -1540,18 +1540,16 @@ void MCDwarfFrameEmitter::Emit(MCObjectStreamer &Streamer, MCAsmBackend *MAB,
|
||||
for (unsigned i = 0, n = FrameArray.size(); i < n; ++i) {
|
||||
const MCDwarfFrameInfo &Frame = FrameArray[i];
|
||||
|
||||
// Emit the label from the previous iteration
|
||||
if (FDEEnd) {
|
||||
Streamer.EmitLabel(FDEEnd);
|
||||
FDEEnd = nullptr;
|
||||
}
|
||||
|
||||
if (CanOmitDwarf && Frame.CompactUnwindEncoding !=
|
||||
MOFI->getCompactUnwindDwarfEHFrameOnly())
|
||||
// Don't generate an EH frame if we don't need one. I.e., it's taken care
|
||||
// of by the compact unwind encoding.
|
||||
continue;
|
||||
|
||||
// Close the previous FDE.
|
||||
if (FDEEnd)
|
||||
Streamer.EmitLabel(FDEEnd);
|
||||
|
||||
CIEKey Key(Frame.Personality, Frame.PersonalityEncoding,
|
||||
Frame.LsdaEncoding, Frame.IsSignalFrame, Frame.IsSimple);
|
||||
const MCSymbol *&CIEStart = IsEH ? CIEStarts[Key] : DummyDebugKey;
|
||||
|
Loading…
Reference in New Issue
Block a user