llvm.org GIT mirror llvm / 173d7ff
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 Rafael Espindola 6 years ago
5 changed file(s) with 17 addition(s) and 12 deletion(s). Raw diff Collapse all Expand all
2020 using std::generic_category;
2121 using std::error_category;
2222 using std::make_error_code;
23 using std::error_condition;
2423 }
2524
2625 #endif
2121 public:
2222 const char* name() const LLVM_NOEXCEPT override;
2323 std::string message(int ev) const override;
24 error_condition default_error_condition(int ev) const LLVM_NOEXCEPT override;
24 std::error_condition
25 default_error_condition(int ev) const LLVM_NOEXCEPT override;
2526 };
2627 }
2728
4647 "defined.");
4748 }
4849
49 error_condition _object_error_category::default_error_condition(int EV) const {
50 std::error_condition
51 _object_error_category::default_error_condition(int EV) const {
5052 if (static_cast(EV) == object_error::success)
51 return error_condition();
53 return std::error_condition();
5254 return std::errc::invalid_argument;
5355 }
5456
5151 }
5252 llvm_unreachable("A value of instrprof_error has no message.");
5353 }
54 error_condition default_error_condition(int EV) const LLVM_NOEXCEPT override {
54 std::error_condition
55 default_error_condition(int EV) const LLVM_NOEXCEPT override {
5556 if (static_cast(EV) == instrprof_error::success)
56 return error_condition();
57 return std::error_condition();
5758 return std::errc::invalid_argument;
5859 }
5960 };
2020 public:
2121 const char* name() const LLVM_NOEXCEPT override;
2222 std::string message(int ev) const override;
23 error_condition default_error_condition(int ev) const LLVM_NOEXCEPT override;
23 std::error_condition
24 default_error_condition(int ev) const LLVM_NOEXCEPT override;
2425 };
2526 } // namespace
2627
4647 "defined.");
4748 }
4849
49 error_condition _readobj_error_category::default_error_condition(int EV) const {
50 std::error_condition
51 _readobj_error_category::default_error_condition(int EV) const {
5052 if (static_cast(EV) == readobj_error::success)
51 return error_condition();
53 return std::error_condition();
5254 return std::errc::invalid_argument;
5355 }
5456
1616 public:
1717 const char *name() const LLVM_NOEXCEPT override;
1818 std::string message(int ev) const override;
19 error_condition default_error_condition(int ev) const LLVM_NOEXCEPT override;
19 std::error_condition
20 default_error_condition(int ev) const LLVM_NOEXCEPT override;
2021 };
2122 } // namespace
2223
3738 "defined.");
3839 }
3940
40 error_condition
41 std::error_condition
4142 _obj2yaml_error_category::default_error_condition(int ev) const {
4243 if (static_cast(ev) == obj2yaml_error::success)
43 return error_condition();
44 return std::error_condition();
4445 return std::errc::invalid_argument;
4546 }
4647