summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/ErrorHandling.cpp
diff options
context:
space:
mode:
authorLang Hames <lhames@gmail.com>2016-03-23 23:57:28 +0000
committerLang Hames <lhames@gmail.com>2016-03-23 23:57:28 +0000
commite7aad357a95be22a91d4d7d4131fb5fcf49f50ca (patch)
tree96389cfb0103da5454cd2d5d47077fe0b47f6735 /llvm/lib/Support/ErrorHandling.cpp
parentea00b499c703bbdbf4c87573cf2fe5b46a0bf1c2 (diff)
downloadbcm5719-llvm-e7aad357a95be22a91d4d7d4131fb5fcf49f50ca.tar.gz
bcm5719-llvm-e7aad357a95be22a91d4d7d4131fb5fcf49f50ca.zip
[Support] Make all Errors convertible to std::error_code.
This is a temporary crutch to enable code that currently uses std::error_code to be incrementally moved over to Error. Requiring all Error instances be convertible enables clients to call errorToErrorCode on any error (not just ECErrors created by conversion *from* an error_code). This patch also moves code for Error from ErrorHandling.cpp into a new Error.cpp file. llvm-svn: 264221
Diffstat (limited to 'llvm/lib/Support/ErrorHandling.cpp')
-rw-r--r--llvm/lib/Support/ErrorHandling.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Support/ErrorHandling.cpp b/llvm/lib/Support/ErrorHandling.cpp
index c743d388887..a7d3a18003e 100644
--- a/llvm/lib/Support/ErrorHandling.cpp
+++ b/llvm/lib/Support/ErrorHandling.cpp
@@ -139,9 +139,6 @@ void LLVMResetFatalErrorHandler() {
remove_fatal_error_handler();
}
-void ErrorInfoBase::anchor() {}
-char ErrorInfoBase::ID = 0;
-
#ifdef LLVM_ON_WIN32
#include <winerror.h>
OpenPOWER on IntegriCloud