Micro-opt: Only emit compact unwind if there is a compact unwind encoding to emit.

llvm-svn: 135452
This commit is contained in:
Bill Wendling 2011-07-19 00:09:25 +00:00
parent 49bc680bdf
commit ada366c691
1 changed files with 1 additions and 1 deletions

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;