aboutsummaryrefslogtreecommitdiff
path: root/lib/Frontend/TextDiagnosticPrinter.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2010-05-24 18:37:03 +0000
committerChris Lattner <sabre@nondot.org>2010-05-24 18:37:03 +0000
commitd342bf7fdb5a16fe73e46a8c995ad89cf79a7bad (patch)
tree8a2235733722c3926bfed22bf8ac12aa6855e9e7 /lib/Frontend/TextDiagnosticPrinter.cpp
parenta5a7987394ca15334c03b7e168677a8056561062 (diff)
when too many errors are emitted, and we produce:
fatal error: too many errors emitted, stopping now [-ferror-limit=] Tell the user that this is controlled with -ferror-limit=, like above. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@104528 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/TextDiagnosticPrinter.cpp')
-rw-r--r--lib/Frontend/TextDiagnosticPrinter.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Frontend/TextDiagnosticPrinter.cpp b/lib/Frontend/TextDiagnosticPrinter.cpp
index 547ff4d46b..6ccf4f1ad0 100644
--- a/lib/Frontend/TextDiagnosticPrinter.cpp
+++ b/lib/Frontend/TextDiagnosticPrinter.cpp
@@ -825,6 +825,8 @@ void TextDiagnosticPrinter::HandleDiagnostic(Diagnostic::Level Level,
if (const char *Opt = Diagnostic::getWarningOptionForDiag(Info.getID())) {
OptionName = "-W";
OptionName += Opt;
+ } else if (Info.getID() == diag::fatal_too_many_errors) {
+ OptionName = "-ferror-limit=";
} else {
// If the diagnostic is an extension diagnostic and not enabled by default
// then it must have been turned on with -pedantic.