diff options
Diffstat (limited to 'tools/obj2yaml')
-rw-r--r-- | tools/obj2yaml/Error.cpp | 2 | ||||
-rw-r--r-- | tools/obj2yaml/Error.h | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/tools/obj2yaml/Error.cpp b/tools/obj2yaml/Error.cpp index 3aa472fc3d..ab615ee193 100644 --- a/tools/obj2yaml/Error.cpp +++ b/tools/obj2yaml/Error.cpp @@ -42,7 +42,7 @@ error_condition _obj2yaml_error_category::default_error_condition(int ev) const { if (static_cast<obj2yaml_error>(ev) == obj2yaml_error::success) return error_condition(); - return errc::invalid_argument; + return std::errc::invalid_argument; } namespace llvm { diff --git a/tools/obj2yaml/Error.h b/tools/obj2yaml/Error.h index 4aaf5c7942..7180d54307 100644 --- a/tools/obj2yaml/Error.h +++ b/tools/obj2yaml/Error.h @@ -27,8 +27,10 @@ inline error_code make_error_code(obj2yaml_error e) { return error_code(static_cast<int>(e), obj2yaml_category()); } -template <> struct is_error_code_enum<obj2yaml_error> : std::true_type { }; - } // namespace llvm +namespace std { +template <> struct is_error_code_enum<llvm::obj2yaml_error> : std::true_type {}; +} + #endif |