Fix compile errors.
authorNick Lewycky <nicholas@mxc.ca>
Thu, 2 Sep 2010 05:44:31 +0000 (05:44 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Thu, 2 Sep 2010 05:44:31 +0000 (05:44 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112808 91177308-0d34-0410-b5e6-96231b3b80d8

tools/gold/gold-plugin.cpp

index 858af6f4324cfdcc2c0e269dcc10ec34e5cf74a6..4b58fae96de40832d1f1c56edb85418258edaab7 100644 (file)
@@ -460,12 +460,12 @@ static ld_plugin_status all_symbols_read_hook(void) {
     return LDPS_ERR;
   }
 
-  objFile.write(buffer, bufsize);
-  objFile.close();
-  if (objFile.has_error()) {
+  objFile.os().write(buffer, bufsize);
+  objFile.os().close();
+  if (objFile.os().has_error()) {
     (*message)(LDPL_ERROR, "Error writing output file '%s'",
                uniqueObjPath.c_str());
-    objFile.clear_error();
+    objFile.os().clear_error();
     return LDPS_ERR;
   }
   objFile.keep();