diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-13 03:07:50 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-13 03:07:50 +0000 |
commit | 1ad45020ec8518a5c9bea7ec1007798a456bff56 (patch) | |
tree | 07430093f7f8e4eaf7cfa61b960406627e961c54 /tools/gold | |
parent | 7532b4038f2ce16cc285ed6b3254053f30088faa (diff) | |
download | llvm-1ad45020ec8518a5c9bea7ec1007798a456bff56.tar.gz llvm-1ad45020ec8518a5c9bea7ec1007798a456bff56.tar.bz2 llvm-1ad45020ec8518a5c9bea7ec1007798a456bff56.tar.xz |
Remove 'using std::error_code' from tools.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210876 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/gold')
-rw-r--r-- | tools/gold/gold-plugin.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/gold/gold-plugin.cpp b/tools/gold/gold-plugin.cpp index 2030fbd6c8..371574f261 100644 --- a/tools/gold/gold-plugin.cpp +++ b/tools/gold/gold-plugin.cpp @@ -44,7 +44,6 @@ #endif using namespace llvm; -using std::error_code; namespace { ld_plugin_status discard_message(int level, const char *format, ...) { @@ -259,7 +258,7 @@ static ld_plugin_status claim_file_hook(const ld_plugin_input_file *file, if (file->offset) { offset = file->offset; } - if (error_code ec = MemoryBuffer::getOpenFileSlice( + if (std::error_code ec = MemoryBuffer::getOpenFileSlice( file->fd, file->name, buffer, file->filesize, offset)) { (*message)(LDPL_ERROR, ec.message().c_str()); return LDPS_ERR; @@ -485,7 +484,7 @@ static ld_plugin_status all_symbols_read_hook(void) { static ld_plugin_status cleanup_hook(void) { for (int i = 0, e = Cleanup.size(); i != e; ++i) { - error_code EC = sys::fs::remove(Cleanup[i]); + std::error_code EC = sys::fs::remove(Cleanup[i]); if (EC) (*message)(LDPL_ERROR, "Failed to delete '%s': %s", Cleanup[i].c_str(), EC.message().c_str()); |