Use raw_pwrite_stream in the object writer/streamer.

The ELF object writer will take advantage of that in the next commit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@234950 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2015-04-14 22:14:34 +00:00
parent f49f1560d2
commit c98092e28d
74 changed files with 192 additions and 152 deletions

View File

@ -566,7 +566,8 @@ bool LTOCodeGenerator::optimize(bool DisableInline,
return true;
}
bool LTOCodeGenerator::compileOptimized(raw_ostream &out, std::string &errMsg) {
bool LTOCodeGenerator::compileOptimized(raw_pwrite_stream &out,
std::string &errMsg) {
if (!this->determineTarget(errMsg))
return false;