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:
Bill Wendling 2011-07-19 00:09:25 +00:00
parent e52e3f2c02
commit 6c2f7e2398

View File

@ -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;