llvm.org GIT mirror llvm / cc0d35a
Remove unused and odd code. This code was never being used and any use of it would look fairly strange. For example, it would try to map a object_error::parse_failed to std::errc::invalid_argument. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210912 91177308-0d34-0410-b5e6-96231b3b80d8 Rafael Espindola 6 years ago
4 changed file(s) with 0 addition(s) and 33 deletion(s). Raw diff Collapse all Expand all
2121 public:
2222 const char* name() const LLVM_NOEXCEPT override;
2323 std::string message(int ev) const override;
24 std::error_condition
25 default_error_condition(int ev) const LLVM_NOEXCEPT override;
2624 };
2725 }
2826
4745 "defined.");
4846 }
4947
50 std::error_condition
51 _object_error_category::default_error_condition(int EV) const {
52 if (static_cast(EV) == object_error::success)
53 return std::error_condition();
54 return std::errc::invalid_argument;
55 }
56
5748 const std::error_category &object::object_category() {
5849 static _object_error_category o;
5950 return o;
5151 }
5252 llvm_unreachable("A value of instrprof_error has no message.");
5353 }
54 std::error_condition
55 default_error_condition(int EV) const LLVM_NOEXCEPT override {
56 if (static_cast(EV) == instrprof_error::success)
57 return std::error_condition();
58 return std::errc::invalid_argument;
59 }
6054 };
6155 }
6256
2020 public:
2121 const char* name() const LLVM_NOEXCEPT override;
2222 std::string message(int ev) const override;
23 std::error_condition
24 default_error_condition(int ev) const LLVM_NOEXCEPT override;
2523 };
2624 } // namespace
2725
4745 "defined.");
4846 }
4947
50 std::error_condition
51 _readobj_error_category::default_error_condition(int EV) const {
52 if (static_cast(EV) == readobj_error::success)
53 return std::error_condition();
54 return std::errc::invalid_argument;
55 }
56
5748 namespace llvm {
5849 const std::error_category &readobj_category() {
5950 static _readobj_error_category o;
1616 public:
1717 const char *name() const LLVM_NOEXCEPT override;
1818 std::string message(int ev) const override;
19 std::error_condition
20 default_error_condition(int ev) const LLVM_NOEXCEPT override;
2119 };
2220 } // namespace
2321
3836 "defined.");
3937 }
4038
41 std::error_condition
42 _obj2yaml_error_category::default_error_condition(int ev) const {
43 if (static_cast(ev) == obj2yaml_error::success)
44 return std::error_condition();
45 return std::errc::invalid_argument;
46 }
47
4839 namespace llvm {
4940 const std::error_category &obj2yaml_category() {
5041 static _obj2yaml_error_category o;