aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/Error.cpp
diff options
context:
space:
mode:
authorElliot Goodrich <elliotgoodrich@gmail.com>2023-07-09 14:25:41 +0100
committerElliot Goodrich <elliotgoodrich@gmail.com>2023-07-09 14:25:41 +0100
commit19551f000913c2519df045d1da09010be942b48d (patch)
tree6c19cab567c44720c73fee3c0fb2b4836bd9c89d /llvm/lib/Support/Error.cpp
parent4c0cfd870f78c3f107b23a2bd61504c8ebc22912 (diff)
downloadllvm-19551f000913c2519df045d1da09010be942b48d.zip
llvm-19551f000913c2519df045d1da09010be942b48d.tar.gz
llvm-19551f000913c2519df045d1da09010be942b48d.tar.bz2
Revert "[Support] Move StringExtras.h include from Error.h to Error.cpp"
This reverts commit 4c0cfd870f78c3f107b23a2bd61504c8ebc22912. There are still transitive includes missing inside lldb tools.
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),