[llvm] r252237 - Small simplification by moving early continue earlier.
Rafael Espindola via llvm-commits
llvm-commits at lists.llvm.org
Thu Nov 5 15:47:20 PST 2015
Author: rafael
Date: Thu Nov 5 17:47:20 2015
New Revision: 252237
URL: http://llvm.org/viewvc/llvm-project?rev=252237&view=rev
Log:
Small simplification by moving early continue earlier.
Modified:
llvm/trunk/lib/MC/MCDwarf.cpp
Modified: llvm/trunk/lib/MC/MCDwarf.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCDwarf.cpp?rev=252237&r1=252236&r2=252237&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCDwarf.cpp (original)
+++ llvm/trunk/lib/MC/MCDwarf.cpp Thu Nov 5 17:47:20 2015
@@ -1540,18 +1540,16 @@ void MCDwarfFrameEmitter::Emit(MCObjectS
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;
More information about the llvm-commits
mailing list