From 6c2f7e2398d5424e80e2d23a6622d76c921dd361 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Tue, 19 Jul 2011 00:09:25 +0000 Subject: [PATCH] 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 --- lib/MC/MCDwarf.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.34.1