summaryrefslogtreecommitdiff
path: root/tools/obj2yaml
diff options
context:
space:
mode:
authorRafael Espindola <rafael.espindola@gmail.com>2014-06-13 15:36:17 +0000
committerRafael Espindola <rafael.espindola@gmail.com>2014-06-13 15:36:17 +0000
commitcc0d35a2e811dbc69df266322cc80807fa489359 (patch)
treee750064c71f49f92c7df3cff7384f23f3ddd029f /tools/obj2yaml
parent520ae5c765b5bdabad7a95b698a76f051f78ba69 (diff)
downloadllvm-cc0d35a2e811dbc69df266322cc80807fa489359.tar.gz
llvm-cc0d35a2e811dbc69df266322cc80807fa489359.tar.bz2
llvm-cc0d35a2e811dbc69df266322cc80807fa489359.tar.xz
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
Diffstat (limited to 'tools/obj2yaml')
-rw-r--r--tools/obj2yaml/Error.cpp9
1 files changed, 0 insertions, 9 deletions
diff --git a/tools/obj2yaml/Error.cpp b/tools/obj2yaml/Error.cpp
index 5b07b9cda8..00741287a6 100644
--- a/tools/obj2yaml/Error.cpp
+++ b/tools/obj2yaml/Error.cpp
@@ -17,8 +17,6 @@ class _obj2yaml_error_category : public std::error_category {
public:
const char *name() const LLVM_NOEXCEPT override;
std::string message(int ev) const override;
- std::error_condition
- default_error_condition(int ev) const LLVM_NOEXCEPT override;
};
} // namespace
@@ -39,13 +37,6 @@ std::string _obj2yaml_error_category::message(int ev) const {
"defined.");
}
-std::error_condition
-_obj2yaml_error_category::default_error_condition(int ev) const {
- if (static_cast<obj2yaml_error>(ev) == obj2yaml_error::success)
- return std::error_condition();
- return std::errc::invalid_argument;
-}
-
namespace llvm {
const std::error_category &obj2yaml_category() {
static _obj2yaml_error_category o;