diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-12 01:28:12 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2014-06-12 01:28:12 +0000 |
commit | 7cc0d413b54949fe9f05cbcea11cd20c9ea44994 (patch) | |
tree | 4320f520a6868cdc8faf3fdf71b4acda46c82f3d /lld/lib/Core/Error.cpp | |
parent | 116f21c4dd1555c6642aa72a8b695324eef8376d (diff) | |
download | bcm5719-llvm-7cc0d413b54949fe9f05cbcea11cd20c9ea44994.tar.gz bcm5719-llvm-7cc0d413b54949fe9f05cbcea11cd20c9ea44994.zip |
Use error_condition from the std namespace.
llvm-svn: 210730
Diffstat (limited to 'lld/lib/Core/Error.cpp')
-rw-r--r-- | lld/lib/Core/Error.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/lld/lib/Core/Error.cpp b/lld/lib/Core/Error.cpp index 8b75d17319f..e6a3e37250c 100644 --- a/lld/lib/Core/Error.cpp +++ b/lld/lib/Core/Error.cpp @@ -41,10 +41,10 @@ public: "message defined."); } - llvm::error_condition + std::error_condition default_error_condition(int ev) const LLVM_NOEXCEPT override { if (NativeReaderError(ev) == NativeReaderError::success) - return llvm::error_condition(); + return std::error_condition(); return std::errc::invalid_argument; } }; @@ -71,10 +71,10 @@ public: "message defined."); } - llvm::error_condition + std::error_condition default_error_condition(int ev) const LLVM_NOEXCEPT override { if (YamlReaderError(ev) == YamlReaderError::success) - return llvm::error_condition(); + return std::error_condition(); return std::errc::invalid_argument; } }; @@ -101,11 +101,11 @@ public: "message defined."); } - llvm::error_condition + std::error_condition default_error_condition(int ev) const LLVM_NOEXCEPT override { LinkerScriptReaderError e = LinkerScriptReaderError(ev); if (e == LinkerScriptReaderError::success) - return llvm::error_condition(); + return std::error_condition(); return std::errc::invalid_argument; } }; @@ -128,10 +128,10 @@ public: "message defined."); } - llvm::error_condition + std::error_condition default_error_condition(int ev) const LLVM_NOEXCEPT override { if (InputGraphError(ev) == InputGraphError::success) - return llvm::error_condition(); + return std::error_condition(); return std::errc::invalid_argument; } }; @@ -157,10 +157,10 @@ public: "message defined."); } - llvm::error_condition + std::error_condition default_error_condition(int ev) const LLVM_NOEXCEPT override { if (ReaderError(ev) == ReaderError::success) - return llvm::error_condition(); + return std::error_condition(); return std::errc::invalid_argument; } }; |