Add a frame with the compact unwind encoding if it exists.
authorBill Wendling <isanbard@gmail.com>
Tue, 19 Jul 2011 00:02:51 +0000 (00:02 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 19 Jul 2011 00:02:51 +0000 (00:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@135450 91177308-0d34-0410-b5e6-96231b3b80d8

lib/CodeGen/AsmPrinter/AsmPrinter.cpp

index fbf98671918e327f47cc0972514aa86eb400f99f..7575f3534bc25f3be7e3fa6e239a242c109af6ff 100644 (file)
@@ -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<MachineMove> &Moves = MMI.getFrameMoves();
   bool FoundOne = false;