diff options
author | Alex Lorenz <arphaman@gmail.com> | 2015-08-05 18:52:21 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2015-08-05 18:52:21 +0000 |
commit | 05e3882e81d4d25f52f716d2f6555510e25c6143 (patch) | |
tree | b1fc3bfce2a2588955c7f13993a59ca527082c50 /llvm/lib/CodeGen/MIRPrinter.cpp | |
parent | 124955aade67bb0455a8c0dc1f01d86b265ef277 (diff) | |
download | bcm5719-llvm-05e3882e81d4d25f52f716d2f6555510e25c6143.tar.gz bcm5719-llvm-05e3882e81d4d25f52f716d2f6555510e25c6143.zip |
MIR Serialization: Serialize the typed immediate integer machine operands.
llvm-svn: 244098
Diffstat (limited to 'llvm/lib/CodeGen/MIRPrinter.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MIRPrinter.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp index bba9518c299..375fb74790b 100644 --- a/llvm/lib/CodeGen/MIRPrinter.cpp +++ b/llvm/lib/CodeGen/MIRPrinter.cpp @@ -541,6 +541,9 @@ void MIPrinter::print(const MachineOperand &Op, const TargetRegisterInfo *TRI) { case MachineOperand::MO_Immediate: OS << Op.getImm(); break; + case MachineOperand::MO_CImmediate: + Op.getCImm()->printAsOperand(OS, /*PrintType=*/true, MST); + break; case MachineOperand::MO_FPImmediate: Op.getFPImm()->printAsOperand(OS, /*PrintType=*/true, MST); break; |