[llvm-commits] [llvm] r135452 - /llvm/trunk/lib/MC/MCDwarf.cpp
Bill Wendling
isanbard at gmail.com
Mon Jul 18 17:09:25 PDT 2011
Author: void
Date: Mon Jul 18 19:09:25 2011
New Revision: 135452
URL: http://llvm.org/viewvc/llvm-project?rev=135452&view=rev
Log:
Micro-opt: Only emit compact unwind if there is a compact unwind encoding to emit.
Modified:
llvm/trunk/lib/MC/MCDwarf.cpp
Modified: llvm/trunk/lib/MC/MCDwarf.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/MC/MCDwarf.cpp?rev=135452&r1=135451&r2=135452&view=diff
==============================================================================
--- llvm/trunk/lib/MC/MCDwarf.cpp (original)
+++ llvm/trunk/lib/MC/MCDwarf.cpp Mon Jul 18 19:09:25 2011
@@ -1022,7 +1022,7 @@
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;
More information about the llvm-commits
mailing list