forked from OSchip/llvm-project
Micro-opt: Only emit compact unwind if there is a compact unwind encoding to emit.
llvm-svn: 135452
This commit is contained in:
parent
49bc680bdf
commit
ada366c691
|
@ -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…
Reference in New Issue