MIR Serialization: Serialize the memory operand's alias scope metadata node.
[oota-llvm.git] / lib / CodeGen / MIRPrinter.cpp
index b7292f3e1519ce76b02dd13bdee63aad48b3a868..6be8205f65e05e523d0ff1627a0a1e5ddbf7eef4 100644 (file)
@@ -782,7 +782,10 @@ void MIPrinter::print(const MachineMemOperand &Op) {
     OS << ", !tbaa ";
     AAInfo.TBAA->printAsOperand(OS, MST);
   }
-  // TODO: Print AA Scope metadata.
+  if (AAInfo.Scope) {
+    OS << ", !alias.scope ";
+    AAInfo.Scope->printAsOperand(OS, MST);
+  }
   // TODO: Print AA NoAlias metadata.
   // TODO: Print the ranges metadata.
   OS << ')';