summaryrefslogtreecommitdiffstats
path: root/lld/lib
diff options
context:
space:
mode:
authorPete Cooper <peter_cooper@apple.com>2016-03-31 01:21:50 +0000
committerPete Cooper <peter_cooper@apple.com>2016-03-31 01:21:50 +0000
commiteadf9e4ec9c7cd775896bd7beb6b54d324f7994e (patch)
tree8ea67d41a021b196373bcb9092d7ab668ac4d897 /lld/lib
parent2f6216c1810628729ec8c2915a4ddd259b947c74 (diff)
downloadbcm5719-llvm-eadf9e4ec9c7cd775896bd7beb6b54d324f7994e.tar.gz
bcm5719-llvm-eadf9e4ec9c7cd775896bd7beb6b54d324f7994e.zip
Remove unused variants of make_dynamic_error_code. NFC.
make_dynamic_error_code was used to create a std::error_code with a std::string message. Now that we are migrating to llvm::Error, there are no calls to these make_dynamic_error_code methods. There is one single call to make_dynamic_error_code remaining, the one inside GenericError::convertToErrorCode(). That method is only called from File::doParse() which should be a temporary situation. We need to work out how to deal with File::parse() caching the error result from doParse(). Caching errors isn't supported in the new scheme, and probably isn't needed here, but we need to work that out. Once thats done, dynamic error and all utilities around it can be deleted. llvm-svn: 264982
Diffstat (limited to 'lld/lib')
-rw-r--r--lld/lib/Core/Error.cpp8
1 files changed, 0 insertions, 8 deletions
diff --git a/lld/lib/Core/Error.cpp b/lld/lib/Core/Error.cpp
index 097318efb2f..4df1ce120bd 100644
--- a/lld/lib/Core/Error.cpp
+++ b/lld/lib/Core/Error.cpp
@@ -76,18 +76,10 @@ private:
static dynamic_error_category categorySingleton;
-std::error_code make_dynamic_error_code(const char *msg) {
- return make_dynamic_error_code(StringRef(msg));
-}
-
std::error_code make_dynamic_error_code(StringRef msg) {
return std::error_code(categorySingleton.add(msg), categorySingleton);
}
-std::error_code make_dynamic_error_code(const Twine &msg) {
- return std::error_code(categorySingleton.add(msg.str()), categorySingleton);
-}
-
char GenericError::ID = 0;
GenericError::GenericError(Twine Msg) : Msg(Msg.str()) { }
OpenPOWER on IntegriCloud