aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MIRPrinter.cpp
diff options
context:
space:
mode:
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>2018-01-09 11:33:22 +0000
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>2018-01-09 11:33:22 +0000
commitdbf2c48fc7ed8ce561b2096916b1f5fa539c61d0 (patch)
treec9a2697e78005f6272dcd164f445ca6925937759 /llvm/lib/CodeGen/MIRPrinter.cpp
parent7868e740333984bd2e348d9e45c61f8ff57696a9 (diff)
downloadllvm-dbf2c48fc7ed8ce561b2096916b1f5fa539c61d0.zip
llvm-dbf2c48fc7ed8ce561b2096916b1f5fa539c61d0.tar.gz
llvm-dbf2c48fc7ed8ce561b2096916b1f5fa539c61d0.tar.bz2
[MIR] Add support for the frame-destroy MachineInstr flag
We are printing / parsing the `frame-setup` MachineInstr flag but not the `frame-destroy` one. Differential Revision: https://reviews.llvm.org/D41509 llvm-svn: 322071
Diffstat (limited to 'llvm/lib/CodeGen/MIRPrinter.cpp')
-rw-r--r--llvm/lib/CodeGen/MIRPrinter.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp
index f91cca6..cd3ec2e 100644
--- a/llvm/lib/CodeGen/MIRPrinter.cpp
+++ b/llvm/lib/CodeGen/MIRPrinter.cpp
@@ -670,6 +670,9 @@ void MIPrinter::print(const MachineInstr &MI) {
OS << " = ";
if (MI.getFlag(MachineInstr::FrameSetup))
OS << "frame-setup ";
+ else if (MI.getFlag(MachineInstr::FrameDestroy))
+ OS << "frame-destroy ";
+
OS << TII->getName(MI.getOpcode());
if (I < E)
OS << ' ';