diff options
author | NAKAMURA Takumi <geek4civic@gmail.com> | 2015-05-22 07:17:07 +0000 |
---|---|---|
committer | NAKAMURA Takumi <geek4civic@gmail.com> | 2015-05-22 07:17:07 +0000 |
commit | 263b27997d5a1d4bab75c2cd20a397ed80e32925 (patch) | |
tree | 30cb6219ee41aad451b75ef876accc1096797317 /llvm/lib/CodeGen/LLVMTargetMachine.cpp | |
parent | e8d762e148480a0bf5c76e5fd73082040c36ffbd (diff) | |
download | bcm5719-llvm-263b27997d5a1d4bab75c2cd20a397ed80e32925.tar.gz bcm5719-llvm-263b27997d5a1d4bab75c2cd20a397ed80e32925.zip |
Revert r237954, "Resubmit r237708 (MIR Serialization: print and parse LLVM IR using MIR format)."
It brought cyclic dependencies between LLVMCodeGen and LLVMMIR.
llvm-svn: 238007
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LLVMTargetMachine.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp index ff5205801bc..610c9f47bac 100644 --- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp +++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp @@ -150,7 +150,12 @@ bool LLVMTargetMachine::addPassesToEmitFile( return true; if (StopAfter) { - PM.add(createPrintMIRPass(outs())); + // 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)); return false; } |