summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
diff options
context:
space:
mode:
authorBill Wendling <isanbard@gmail.com>2011-07-19 00:02:51 +0000
committerBill Wendling <isanbard@gmail.com>2011-07-19 00:02:51 +0000
commitb20453faae1d5405148fd62cafcb8d9b4a82725c (patch)
treed9d675da182995c8d475609a7d09da375ea8e9a5 /llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
parentc438d78c38973114490ad352386ac0ac71452e2f (diff)
downloadbcm5719-llvm-b20453faae1d5405148fd62cafcb8d9b4a82725c.tar.gz
bcm5719-llvm-b20453faae1d5405148fd62cafcb8d9b4a82725c.zip
Add a frame with the compact unwind encoding if it exists.
llvm-svn: 135450
Diffstat (limited to 'llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp b/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
index fbf98671918..7575f3534bc 100644
--- a/llvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
+++ b/llvm/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<MachineMove> &Moves = MMI.getFrameMoves();
bool FoundOne = false;
OpenPOWER on IntegriCloud