summaryrefslogtreecommitdiffstats
path: root/lld/ELF/Error.h
diff options
context:
space:
mode:
Diffstat (limited to 'lld/ELF/Error.h')
-rw-r--r--lld/ELF/Error.h7
1 files changed, 0 insertions, 7 deletions
diff --git a/lld/ELF/Error.h b/lld/ELF/Error.h
index d0c22f6a5c5..c5c5df774cb 100644
--- a/lld/ELF/Error.h
+++ b/lld/ELF/Error.h
@@ -47,13 +47,6 @@ template <typename T> void error(const ErrorOr<T> &V, const Twine &Prefix) {
LLVM_ATTRIBUTE_NORETURN void fatal(const Twine &Msg);
LLVM_ATTRIBUTE_NORETURN void fatal(const Twine &Msg, const Twine &Prefix);
-inline void check(Error E) {
- handleAllErrors(std::move(E), [&](llvm::ErrorInfoBase &EIB) {
- error(EIB.message());
- return Error::success();
- });
-}
-
template <class T> T check(ErrorOr<T> E) {
if (auto EC = E.getError())
fatal(EC.message());
OpenPOWER on IntegriCloud