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/Target/CppBackend/CPPBackend.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/Target/CppBackend/CPPBackend.cpp')
-rw-r--r-- | llvm/lib/Target/CppBackend/CPPBackend.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/llvm/lib/Target/CppBackend/CPPBackend.cpp b/llvm/lib/Target/CppBackend/CPPBackend.cpp index 8a9437b75ff..0cb0beac8c1 100644 --- a/llvm/lib/Target/CppBackend/CPPBackend.cpp +++ b/llvm/lib/Target/CppBackend/CPPBackend.cpp @@ -2149,11 +2149,9 @@ char CppWriter::ID = 0; // External Interface declaration //===----------------------------------------------------------------------===// -bool CPPTargetMachine::addPassesToEmitFile(PassManagerBase &PM, raw_ostream &o, - CodeGenFileType FileType, - bool DisableVerify, - AnalysisID StartAfter, - AnalysisID StopAfter) { +bool CPPTargetMachine::addPassesToEmitFile( + PassManagerBase &PM, raw_pwrite_stream &o, CodeGenFileType FileType, + bool DisableVerify, AnalysisID StartAfter, AnalysisID StopAfter) { if (FileType != TargetMachine::CGFT_AssemblyFile) return true; auto FOut = llvm::make_unique<formatted_raw_ostream>(o); |