mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-04-16 20:40:16 +00:00
Remove redundant check and use cached FrameArray values.
No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181355 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e449654815
commit
32ec93d431
@ -1480,20 +1480,16 @@ void MCDwarfFrameEmitter::Emit(MCStreamer &Streamer,
|
||||
|
||||
// Emit the compact unwind info if available.
|
||||
if (IsEH && MOFI->getCompactUnwindSection()) {
|
||||
unsigned NumFrameInfos = Streamer.getNumFrameInfos();
|
||||
bool SectionEmitted = false;
|
||||
|
||||
if (NumFrameInfos) {
|
||||
for (unsigned i = 0; i < NumFrameInfos; ++i) {
|
||||
const MCDwarfFrameInfo &Frame = Streamer.getFrameInfo(i);
|
||||
if (Frame.CompactUnwindEncoding == 0) continue;
|
||||
if (!SectionEmitted) {
|
||||
Streamer.SwitchSection(MOFI->getCompactUnwindSection());
|
||||
Streamer.EmitValueToAlignment(Context.getAsmInfo().getPointerSize());
|
||||
SectionEmitted = true;
|
||||
}
|
||||
Emitter.EmitCompactUnwind(Streamer, Frame);
|
||||
for (unsigned i = 0, n = FrameArray.size(); i < n; ++i) {
|
||||
const MCDwarfFrameInfo &Frame = FrameArray[i];
|
||||
if (Frame.CompactUnwindEncoding == 0) continue;
|
||||
if (!SectionEmitted) {
|
||||
Streamer.SwitchSection(MOFI->getCompactUnwindSection());
|
||||
Streamer.EmitValueToAlignment(Context.getAsmInfo().getPointerSize());
|
||||
SectionEmitted = true;
|
||||
}
|
||||
Emitter.EmitCompactUnwind(Streamer, Frame);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user