Use raw_pwrite_stream in the object writer/streamer.
[oota-llvm.git] / lib / LTO / LTOCodeGenerator.cpp
index 345b22463889d6626f65699634c6d365e87bdb03..6745c5707545d4db5a43037ee89fd08c8942ce4f 100644 (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;