From a518b79601dda654d0f96bc82a5a0dcca10ab9c4 Mon Sep 17 00:00:00 2001 From: Alex Lorenz Date: Tue, 4 Aug 2015 00:24:45 +0000 Subject: MIR Serialization: Serialize the 'volatile' machine memory operand flag. llvm-svn: 243923 --- llvm/lib/CodeGen/MIRPrinter.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'llvm/lib/CodeGen/MIRPrinter.cpp') diff --git a/llvm/lib/CodeGen/MIRPrinter.cpp b/llvm/lib/CodeGen/MIRPrinter.cpp index 9c5988c32e4..fb5a36ce9a7 100644 --- a/llvm/lib/CodeGen/MIRPrinter.cpp +++ b/llvm/lib/CodeGen/MIRPrinter.cpp @@ -608,6 +608,8 @@ void MIPrinter::print(const MachineOperand &Op, const TargetRegisterInfo *TRI) { void MIPrinter::print(const MachineMemOperand &Op) { OS << '('; // TODO: Print operand's other flags. + if (Op.isVolatile()) + OS << "volatile "; if (Op.isLoad()) OS << "load "; else { -- cgit v1.2.3