mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-30 17:25:21 +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,8 @@ class _readobj_error_category : public error_category {
|
||||
public:
|
||||
const char* name() const LLVM_NOEXCEPT 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
|
||||
|
||||
@@ -47,9 +48,10 @@ std::string _readobj_error_category::message(int EV) const {
|
||||
"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)
|
||||
return error_condition();
|
||||
return std::error_condition();
|
||||
return std::errc::invalid_argument;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user