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 | 3e19542ed39e3290ec93a331dcefd02ab64f14bd (patch) | |
| tree | 1a40985381dbf1cd00b709006b6a3cb34c39ac72 | |
| parent | b59620f5191233373f4de6c35dcf32a2b63f15fa (diff) | |
| download | bcm5719-llvm-3e19542ed39e3290ec93a331dcefd02ab64f14bd.tar.gz bcm5719-llvm-3e19542ed39e3290ec93a331dcefd02ab64f14bd.zip | |
Fix compile errors.
llvm-svn: 112808
| -rw-r--r-- | llvm/tools/gold/gold-plugin.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index 858af6f4324..4b58fae96de 100644 --- a/llvm/tools/gold/gold-plugin.cpp +++ b/llvm/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(); |

