From: Bill Wendling Date: Tue, 19 Jul 2011 00:09:25 +0000 (+0000) Subject: Micro-opt: Only emit compact unwind if there is a compact unwind encoding to emit. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=6c2f7e2398d5424e80e2d23a6622d76c921dd361;p=oota-llvm.git 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 --- diff --git a/lib/MC/MCDwarf.cpp b/lib/MC/MCDwarf.cpp index ba3bda0bc9a..744d01623cf 100644 --- a/lib/MC/MCDwarf.cpp +++ b/lib/MC/MCDwarf.cpp @@ -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;