summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MIRPrinter.cpp
diff options
context:
space:
mode:
authorAlex Lorenz <arphaman@gmail.com>2015-06-23 23:42:28 +0000
committerAlex Lorenz <arphaman@gmail.com>2015-06-23 23:42:28 +0000
commit240fc1e0aab8558ed9fa5da1ee74530a9262e7d5 (patch)
tree3effc1129db461b93703c506d591ddfb9596af74 /llvm/lib/CodeGen/MIRPrinter.cpp
parent6a24811d8781081535598a274061a8768e7c850e (diff)
downloadbcm5719-llvm-240fc1e0aab8558ed9fa5da1ee74530a9262e7d5.tar.gz
bcm5719-llvm-240fc1e0aab8558ed9fa5da1ee74530a9262e7d5.zip
MIR Serialization: Serialize immediate machine operands.
Reviewers: Duncan P. N. Exon Smith Differential Revision: http://reviews.llvm.org/D10573 llvm-svn: 240481
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 5dd38cf9491..6d62b0ad85b 100644
--- a/llvm/lib/CodeGen/MIRPrinter.cpp
+++ b/llvm/lib/CodeGen/MIRPrinter.cpp
@@ -159,6 +159,9 @@ void MIPrinter::print(const MachineOperand &Op, const TargetRegisterInfo *TRI) {
printReg(Op.getReg(), OS, TRI);
// TODO: Print sub register.
break;
+ case MachineOperand::MO_Immediate:
+ OS << Op.getImm();
+ break;
default:
// TODO: Print the other machine operands.
llvm_unreachable("Can't print this machine operand at the moment");
OpenPOWER on IntegriCloud