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 NativeReaderError::file_malformed to
std::errc::invalid_argument.

llvm-svn: 210913
This commit is contained in:
Rafael Espindola 2014-06-13 15:36:45 +00:00
parent 54f1997979
commit b34440f9c4
1 changed files with 0 additions and 36 deletions

View File

@ -40,13 +40,6 @@ public:
llvm_unreachable("An enumerator of NativeReaderError does not have a "
"message defined.");
}
std::error_condition
default_error_condition(int ev) const LLVM_NOEXCEPT override {
if (NativeReaderError(ev) == NativeReaderError::success)
return std::error_condition();
return std::errc::invalid_argument;
}
};
const std::error_category &lld::native_reader_category() {
@ -70,13 +63,6 @@ public:
llvm_unreachable("An enumerator of YamlReaderError does not have a "
"message defined.");
}
std::error_condition
default_error_condition(int ev) const LLVM_NOEXCEPT override {
if (YamlReaderError(ev) == YamlReaderError::success)
return std::error_condition();
return std::errc::invalid_argument;
}
};
const std::error_category &lld::YamlReaderCategory() {
@ -100,14 +86,6 @@ public:
"An enumerator of LinkerScriptReaderError does not have a "
"message defined.");
}
std::error_condition
default_error_condition(int ev) const LLVM_NOEXCEPT override {
LinkerScriptReaderError e = LinkerScriptReaderError(ev);
if (e == LinkerScriptReaderError::success)
return std::error_condition();
return std::errc::invalid_argument;
}
};
const std::error_category &lld::LinkerScriptReaderCategory() {
@ -127,13 +105,6 @@ public:
llvm_unreachable("An enumerator of InputGraphError does not have a "
"message defined.");
}
std::error_condition
default_error_condition(int ev) const LLVM_NOEXCEPT override {
if (InputGraphError(ev) == InputGraphError::success)
return std::error_condition();
return std::errc::invalid_argument;
}
};
const std::error_category &lld::InputGraphErrorCategory() {
@ -156,13 +127,6 @@ public:
llvm_unreachable("An enumerator of ReaderError does not have a "
"message defined.");
}
std::error_condition
default_error_condition(int ev) const LLVM_NOEXCEPT override {
if (ReaderError(ev) == ReaderError::success)
return std::error_condition();
return std::errc::invalid_argument;
}
};
const std::error_category &lld::ReaderErrorCategory() {