diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2015-04-14 22:14:34 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2015-04-14 22:14:34 +0000 |
commit | 5560a4cfbd6c4c8632f9b7662aa9fe477bbc7374 (patch) | |
tree | d3b890827e5e766e80c1844b8e043e4b4aab074d /llvm/lib/CodeGen/LLVMTargetMachine.cpp | |
parent | 931b107364adbad262b696ee2b50a100f7c2f6e9 (diff) | |
download | bcm5719-llvm-5560a4cfbd6c4c8632f9b7662aa9fe477bbc7374.tar.gz bcm5719-llvm-5560a4cfbd6c4c8632f9b7662aa9fe477bbc7374.zip |
Use raw_pwrite_stream in the object writer/streamer.
The ELF object writer will take advantage of that in the next commit.
llvm-svn: 234950
Diffstat (limited to 'llvm/lib/CodeGen/LLVMTargetMachine.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LLVMTargetMachine.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/LLVMTargetMachine.cpp b/llvm/lib/CodeGen/LLVMTargetMachine.cpp index 5e6bfb74537..61d68f60711 100644 --- a/llvm/lib/CodeGen/LLVMTargetMachine.cpp +++ b/llvm/lib/CodeGen/LLVMTargetMachine.cpp @@ -141,7 +141,7 @@ static MCContext *addPassesToGenerateCode(LLVMTargetMachine *TM, } bool LLVMTargetMachine::addPassesToEmitFile( - PassManagerBase &PM, raw_ostream &Out, CodeGenFileType FileType, + PassManagerBase &PM, raw_pwrite_stream &Out, CodeGenFileType FileType, bool DisableVerify, AnalysisID StartAfter, AnalysisID StopAfter) { // Add common CodeGen passes. MCContext *Context = addPassesToGenerateCode(this, PM, DisableVerify, @@ -227,9 +227,8 @@ bool LLVMTargetMachine::addPassesToEmitFile( /// code is not supported. It fills the MCContext Ctx pointer which can be /// used to build custom MCStreamer. /// -bool LLVMTargetMachine::addPassesToEmitMC(PassManagerBase &PM, - MCContext *&Ctx, - raw_ostream &Out, +bool LLVMTargetMachine::addPassesToEmitMC(PassManagerBase &PM, MCContext *&Ctx, + raw_pwrite_stream &Out, bool DisableVerify) { // Add common CodeGen passes. Ctx = addPassesToGenerateCode(this, PM, DisableVerify, nullptr, nullptr); |