summaryrefslogtreecommitdiff
path: root/tools/llvm-readobj/Error.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/llvm-readobj/Error.h')
-rw-r--r--tools/llvm-readobj/Error.h5
1 files changed, 2 insertions, 3 deletions
diff --git a/tools/llvm-readobj/Error.h b/tools/llvm-readobj/Error.h
index b9b7e526b9..81ce4082aa 100644
--- a/tools/llvm-readobj/Error.h
+++ b/tools/llvm-readobj/Error.h
@@ -17,7 +17,6 @@
#include <system_error>
namespace llvm {
-using std::error_code;
const std::error_category &readobj_category();
enum class readobj_error {
@@ -29,8 +28,8 @@ enum class readobj_error {
unknown_symbol
};
-inline error_code make_error_code(readobj_error e) {
- return error_code(static_cast<int>(e), readobj_category());
+inline std::error_code make_error_code(readobj_error e) {
+ return std::error_code(static_cast<int>(e), readobj_category());
}
} // namespace llvm