aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Error.cpp
diff options
context:
space:
mode:
authorElliot Goodrich <elliotgoodrich@gmail.com>2023-07-08 10:42:12 +0100
committerElliot Goodrich <elliotgoodrich@gmail.com>2023-07-08 10:42:12 +0100
commit86fb14a95dc3eb979d513dfe699af7d955b5038f (patch)
tree994be076a54e89487ce89cc226208e87f514ab22 /llvm/lib/Support/Error.cpp
parent9312b4f90fcd9e1bf0186b66912c3b83c2d35f51 (diff)
downloadllvm-86fb14a95dc3eb979d513dfe699af7d955b5038f.zip
llvm-86fb14a95dc3eb979d513dfe699af7d955b5038f.tar.gz
llvm-86fb14a95dc3eb979d513dfe699af7d955b5038f.tar.bz2
Revert "[Support] Move StringExtras.h include from Error.h to Error.cpp"
This reverts commit fc6b12689c5001aa050fc1d855209a5e319112b7.
Diffstat (limited to 'llvm/lib/Support/Error.cpp')
-rw-r--r--llvm/lib/Support/Error.cpp11
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/lib/Support/Error.cpp b/llvm/lib/Support/Error.cpp
index 21d5915..b339b70 100644
--- a/llvm/lib/Support/Error.cpp
+++ b/llvm/lib/Support/Error.cpp
@@ -7,8 +7,6 @@
//===----------------------------------------------------------------------===//
#include "llvm/Support/Error.h"
-#include "llvm/ADT/SmallVector.h"
-#include "llvm/ADT/StringExtras.h"
#include "llvm/ADT/Twine.h"
#include "llvm/Support/ErrorHandling.h"
#include <system_error>
@@ -72,15 +70,6 @@ void logAllUnhandledErrors(Error E, raw_ostream &OS, Twine ErrorBanner) {
});
}
-/// Write all error messages (if any) in E to a string. The newline character
-/// is used to separate error messages.
-std::string toString(Error E) {
- SmallVector<std::string, 2> Errors;
- handleAllErrors(std::move(E), [&Errors](const ErrorInfoBase &EI) {
- Errors.push_back(EI.message());
- });
- return join(Errors.begin(), Errors.end(), "\n");
-}
std::error_code ErrorList::convertToErrorCode() const {
return std::error_code(static_cast<int>(ErrorErrorCode::MultipleErrors),