From: Bill Wendling Date: Tue, 19 Jul 2011 00:02:51 +0000 (+0000) Subject: Add a frame with the compact unwind encoding if it exists. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=e060a5cd0688caea0e3de670f642f92a4d0b326e;p=oota-llvm.git Add a frame with the compact unwind encoding if it exists. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135450 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp index fbf98671918..7575f3534bc 100644 --- a/lib/CodeGen/AsmPrinter/AsmPrinter.cpp +++ b/lib/CodeGen/AsmPrinter/AsmPrinter.cpp @@ -620,6 +620,9 @@ void AsmPrinter::emitPrologLabel(const MachineInstr &MI) { if (needsCFIMoves() == CFI_M_None) return; + if (MMI->getCompactUnwindEncoding() != 0) + OutStreamer.EmitCompactUnwindEncoding(MMI->getCompactUnwindEncoding()); + MachineModuleInfo &MMI = MF->getMMI(); std::vector &Moves = MMI.getFrameMoves(); bool FoundOne = false;