MIR Serialization: print and parse LLVM IR using MIR format.
[oota-llvm.git] / lib / CodeGen / LLVMTargetMachine.cpp
index 610c9f47bac7c88c228270d69ccb657dbec4654b..ff5205801bc4a7aab28a6109b5572677fcff58e2 100644 (file)
@@ -150,12 +150,7 @@ bool LLVMTargetMachine::addPassesToEmitFile(
     return true;
 
   if (StopAfter) {
-    // FIXME: The intent is that this should eventually write out a YAML file,
-    // containing the LLVM IR, the machine-level IR (when stopping after a
-    // machine-level pass), and whatever other information is needed to
-    // deserialize the code and resume compilation.  For now, just write the
-    // LLVM IR.
-    PM.add(createPrintModulePass(Out));
+    PM.add(createPrintMIRPass(outs()));
     return false;
   }