mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-21 18:24:23 +00:00
Don't import error_condition into the llvm namespace.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210731 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -21,7 +21,6 @@ using std::error_code;
|
|||||||
using std::generic_category;
|
using std::generic_category;
|
||||||
using std::error_category;
|
using std::error_category;
|
||||||
using std::make_error_code;
|
using std::make_error_code;
|
||||||
using std::error_condition;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -22,7 +22,8 @@ class _object_error_category : public error_category {
|
|||||||
public:
|
public:
|
||||||
const char* name() const LLVM_NOEXCEPT override;
|
const char* name() const LLVM_NOEXCEPT override;
|
||||||
std::string message(int ev) const override;
|
std::string message(int ev) const override;
|
||||||
error_condition default_error_condition(int ev) const LLVM_NOEXCEPT override;
|
std::error_condition
|
||||||
|
default_error_condition(int ev) const LLVM_NOEXCEPT override;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -47,9 +48,10 @@ std::string _object_error_category::message(int EV) const {
|
|||||||
"defined.");
|
"defined.");
|
||||||
}
|
}
|
||||||
|
|
||||||
error_condition _object_error_category::default_error_condition(int EV) const {
|
std::error_condition
|
||||||
|
_object_error_category::default_error_condition(int EV) const {
|
||||||
if (static_cast<object_error>(EV) == object_error::success)
|
if (static_cast<object_error>(EV) == object_error::success)
|
||||||
return error_condition();
|
return std::error_condition();
|
||||||
return std::errc::invalid_argument;
|
return std::errc::invalid_argument;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -52,9 +52,10 @@ class InstrProfErrorCategoryType : public error_category {
|
|||||||
}
|
}
|
||||||
llvm_unreachable("A value of instrprof_error has no message.");
|
llvm_unreachable("A value of instrprof_error has no message.");
|
||||||
}
|
}
|
||||||
error_condition default_error_condition(int EV) const LLVM_NOEXCEPT override {
|
std::error_condition
|
||||||
|
default_error_condition(int EV) const LLVM_NOEXCEPT override {
|
||||||
if (static_cast<instrprof_error>(EV) == instrprof_error::success)
|
if (static_cast<instrprof_error>(EV) == instrprof_error::success)
|
||||||
return error_condition();
|
return std::error_condition();
|
||||||
return std::errc::invalid_argument;
|
return std::errc::invalid_argument;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
@ -21,7 +21,8 @@ class _readobj_error_category : public error_category {
|
|||||||
public:
|
public:
|
||||||
const char* name() const LLVM_NOEXCEPT override;
|
const char* name() const LLVM_NOEXCEPT override;
|
||||||
std::string message(int ev) const override;
|
std::string message(int ev) const override;
|
||||||
error_condition default_error_condition(int ev) const LLVM_NOEXCEPT override;
|
std::error_condition
|
||||||
|
default_error_condition(int ev) const LLVM_NOEXCEPT override;
|
||||||
};
|
};
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
@ -47,9 +48,10 @@ std::string _readobj_error_category::message(int EV) const {
|
|||||||
"defined.");
|
"defined.");
|
||||||
}
|
}
|
||||||
|
|
||||||
error_condition _readobj_error_category::default_error_condition(int EV) const {
|
std::error_condition
|
||||||
|
_readobj_error_category::default_error_condition(int EV) const {
|
||||||
if (static_cast<readobj_error>(EV) == readobj_error::success)
|
if (static_cast<readobj_error>(EV) == readobj_error::success)
|
||||||
return error_condition();
|
return std::error_condition();
|
||||||
return std::errc::invalid_argument;
|
return std::errc::invalid_argument;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -17,7 +17,8 @@ class _obj2yaml_error_category : public error_category {
|
|||||||
public:
|
public:
|
||||||
const char *name() const LLVM_NOEXCEPT override;
|
const char *name() const LLVM_NOEXCEPT override;
|
||||||
std::string message(int ev) const override;
|
std::string message(int ev) const override;
|
||||||
error_condition default_error_condition(int ev) const LLVM_NOEXCEPT override;
|
std::error_condition
|
||||||
|
default_error_condition(int ev) const LLVM_NOEXCEPT override;
|
||||||
};
|
};
|
||||||
} // namespace
|
} // namespace
|
||||||
|
|
||||||
@ -38,10 +39,10 @@ std::string _obj2yaml_error_category::message(int ev) const {
|
|||||||
"defined.");
|
"defined.");
|
||||||
}
|
}
|
||||||
|
|
||||||
error_condition
|
std::error_condition
|
||||||
_obj2yaml_error_category::default_error_condition(int ev) const {
|
_obj2yaml_error_category::default_error_condition(int ev) const {
|
||||||
if (static_cast<obj2yaml_error>(ev) == obj2yaml_error::success)
|
if (static_cast<obj2yaml_error>(ev) == obj2yaml_error::success)
|
||||||
return error_condition();
|
return std::error_condition();
|
||||||
return std::errc::invalid_argument;
|
return std::errc::invalid_argument;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user