summaryrefslogtreecommitdiff
path: root/tools/obj2yaml/Error.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/obj2yaml/Error.cpp')
-rw-r--r--tools/obj2yaml/Error.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/tools/obj2yaml/Error.cpp b/tools/obj2yaml/Error.cpp
index 5b07b9cda8..00741287a6 100644
--- a/tools/obj2yaml/Error.cpp
+++ b/tools/obj2yaml/Error.cpp
@@ -17,8 +17,6 @@ class _obj2yaml_error_category : public std::error_category {
public:
const char *name() const LLVM_NOEXCEPT override;
std::string message(int ev) const override;
- std::error_condition
- default_error_condition(int ev) const LLVM_NOEXCEPT override;
};
} // namespace
@@ -39,13 +37,6 @@ std::string _obj2yaml_error_category::message(int ev) const {
"defined.");
}
-std::error_condition
-_obj2yaml_error_category::default_error_condition(int ev) const {
- if (static_cast<obj2yaml_error>(ev) == obj2yaml_error::success)
- return std::error_condition();
- return std::errc::invalid_argument;
-}
-
namespace llvm {
const std::error_category &obj2yaml_category() {
static _obj2yaml_error_category o;