diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2010-09-02 05:44:31 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2010-09-02 05:44:31 +0000 |
commit | 59b4d2a371e2a37db2876bc57db19475c7a1c527 (patch) | |
tree | 1b06431f8abf61792a78dc8b649f4fdef38df04a /tools/gold | |
parent | 7642572e6d5e3ca0c5d18e2591989bd5c4f4b31c (diff) | |
download | external_llvm-59b4d2a371e2a37db2876bc57db19475c7a1c527.zip external_llvm-59b4d2a371e2a37db2876bc57db19475c7a1c527.tar.gz external_llvm-59b4d2a371e2a37db2876bc57db19475c7a1c527.tar.bz2 |
Fix compile errors.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@112808 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gold')
-rw-r--r-- | tools/gold/gold-plugin.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tools/gold/gold-plugin.cpp b/tools/gold/gold-plugin.cpp index 858af6f..4b58fae 100644 --- a/tools/gold/gold-plugin.cpp +++ b/tools/gold/gold-plugin.cpp @@ -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(); |