diff options
author | Alex Lorenz <arphaman@gmail.com> | 2015-07-31 20:49:21 +0000 |
---|---|---|
committer | Alex Lorenz <arphaman@gmail.com> | 2015-07-31 20:49:21 +0000 |
commit | ad156fb6af9f58c35357405b0ecd83a60185ed84 (patch) | |
tree | 0ae0c1cd07ced2376fdcd74321003d1987abe626 /llvm/lib/CodeGen/MIRPrinter.cpp | |
parent | 375fa1381d5bd9c02895049bcc3390f5df29f55e (diff) | |
download | bcm5719-llvm-ad156fb6af9f58c35357405b0ecd83a60185ed84.tar.gz bcm5719-llvm-ad156fb6af9f58c35357405b0ecd83a60185ed84.zip |
MIR Serialization: Serialize the floating point immediate machine operands.
Reviewers: Duncan P. N. Exon Smith
llvm-svn: 243780
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 f34cef7bcb4..664a0f532e9 100644 --- a/llvm/lib/CodeGen/MIRPrinter.cpp +++ b/llvm/lib/CodeGen/MIRPrinter.cpp @@ -513,6 +513,9 @@ void MIPrinter::print(const MachineOperand &Op, const TargetRegisterInfo *TRI) { case MachineOperand::MO_Immediate: OS << Op.getImm(); break; + case MachineOperand::MO_FPImmediate: + Op.getFPImm()->printAsOperand(OS, /*PrintType=*/true, MST); + break; case MachineOperand::MO_MachineBasicBlock: printMBBReference(*Op.getMBB()); break; |