aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Support/ErrorHandling.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2021-10-06 14:30:31 +0100
committerSimon Pilgrim <llvm-dev@redking.me.uk>2021-10-06 14:32:38 +0100
commitf6fa95b77f33c3690e4201e505cb8dce1433abd9 (patch)
tree69b0994764f83572c7312b85ce2761ded2af6704 /llvm/lib/Support/ErrorHandling.cpp
parent92128b7801fdff86970145854d3d7f0a514d1700 (diff)
downloadllvm-f6fa95b77f33c3690e4201e505cb8dce1433abd9.zip
llvm-f6fa95b77f33c3690e4201e505cb8dce1433abd9.tar.gz
llvm-f6fa95b77f33c3690e4201e505cb8dce1433abd9.tar.bz2
[Support] ErrorHandling.h - Remove report_fatal_error(std::string)
As described on D111049, removing the <string> dependency from error handling removes considerable build overhead, its recommended that the report_fatal_error(Twine) variant is used instead.
Diffstat (limited to 'llvm/lib/Support/ErrorHandling.cpp')
-rw-r--r--llvm/lib/Support/ErrorHandling.cpp4
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/Support/ErrorHandling.cpp b/llvm/lib/Support/ErrorHandling.cpp
index b15c36f..433417a 100644
--- a/llvm/lib/Support/ErrorHandling.cpp
+++ b/llvm/lib/Support/ErrorHandling.cpp
@@ -83,10 +83,6 @@ void llvm::report_fatal_error(const char *Reason, bool GenCrashDiag) {
report_fatal_error(Twine(Reason), GenCrashDiag);
}
-void llvm::report_fatal_error(const std::string &Reason, bool GenCrashDiag) {
- report_fatal_error(Twine(Reason), GenCrashDiag);
-}
-
void llvm::report_fatal_error(StringRef Reason, bool GenCrashDiag) {
report_fatal_error(Twine(Reason), GenCrashDiag);
}