aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/MachineOperand.cpp
diff options
context:
space:
mode:
authorFrancis Visoiu Mistrih <francisvm@yahoo.com>2017-12-08 11:40:06 +0000
committerFrancis Visoiu Mistrih <francisvm@yahoo.com>2017-12-08 11:40:06 +0000
commit6c4ca713f1a9763b3312d5488553f2adff54fefe (patch)
treed5d5b7039e39caac1a06b70a2b881750448f899f /llvm/lib/CodeGen/MachineOperand.cpp
parent5a6d57c75f7b1bbbaa33d0e437fc26c73c1d6150 (diff)
downloadllvm-6c4ca713f1a9763b3312d5488553f2adff54fefe.zip
llvm-6c4ca713f1a9763b3312d5488553f2adff54fefe.tar.gz
llvm-6c4ca713f1a9763b3312d5488553f2adff54fefe.tar.bz2
[CodeGen] Move printing MO_CImmediate operands to MachineOperand::print
Work towards the unification of MIR and debug output by refactoring the interfaces. llvm-svn: 320140
Diffstat (limited to 'llvm/lib/CodeGen/MachineOperand.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineOperand.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/MachineOperand.cpp b/llvm/lib/CodeGen/MachineOperand.cpp
index 85b441c..0cbcb65 100644
--- a/llvm/lib/CodeGen/MachineOperand.cpp
+++ b/llvm/lib/CodeGen/MachineOperand.cpp
@@ -410,7 +410,7 @@ void MachineOperand::print(raw_ostream &OS, ModuleSlotTracker &MST,
OS << getImm();
break;
case MachineOperand::MO_CImmediate:
- getCImm()->getValue().print(OS, false);
+ getCImm()->printAsOperand(OS, /*PrintType=*/true, MST);
break;
case MachineOperand::MO_FPImmediate:
if (getFPImm()->getType()->isFloatTy()) {