mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-05 14:34:55 +00:00
Micro-opt: Only emit compact unwind if there is a compact unwind encoding to emit.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135452 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
e52e3f2c02
commit
6c2f7e2398
@ -1022,7 +1022,7 @@ void MCDwarfFrameEmitter::Emit(MCStreamer &Streamer,
|
||||
const MCSymbol *DummyDebugKey = NULL;
|
||||
for (unsigned i = 0, n = Streamer.getNumFrameInfos(); i < n; ++i) {
|
||||
const MCDwarfFrameInfo &Frame = Streamer.getFrameInfo(i);
|
||||
if (IsEH && TAI.getCompactUnwindSection() &&
|
||||
if (IsEH && TAI.getCompactUnwindSection() && Frame.CompactUnwindEncoding &&
|
||||
Emitter.EmitCompactUnwind(Streamer, Frame)) {
|
||||
FDEEnd = NULL;
|
||||
continue;
|
||||
|
Loading…
x
Reference in New Issue
Block a user