mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-11-01 15:11:24 +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:
parent
5ac7ab395a
commit
173d7ff833
@ -21,7 +21,6 @@ using std::error_code;
|
||||
using std::generic_category;
|
||||
using std::error_category;
|
||||
using std::make_error_code;
|
||||
using std::error_condition;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
@ -22,7 +22,8 @@ class _object_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;
|
||||
};
|
||||
}
|
||||
|
||||
@ -47,9 +48,10 @@ std::string _object_error_category::message(int EV) const {
|
||||
"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)
|
||||
return error_condition();
|
||||
return std::error_condition();
|
||||
return std::errc::invalid_argument;
|
||||
}
|
||||
|
||||
|
@ -52,9 +52,10 @@ class InstrProfErrorCategoryType : public error_category {
|
||||
}
|
||||
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)
|
||||
return error_condition();
|
||||
return std::error_condition();
|
||||
return std::errc::invalid_argument;
|
||||
}
|
||||
};
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -17,7 +17,8 @@ class _obj2yaml_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
|
||||
|
||||
@ -38,10 +39,10 @@ std::string _obj2yaml_error_category::message(int ev) const {
|
||||
"defined.");
|
||||
}
|
||||
|
||||
error_condition
|
||||
std::error_condition
|
||||
_obj2yaml_error_category::default_error_condition(int ev) const {
|
||||
if (static_cast<obj2yaml_error>(ev) == obj2yaml_error::success)
|
||||
return error_condition();
|
||||
return std::error_condition();
|
||||
return std::errc::invalid_argument;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user