diff options
| author | Chris Lattner <sabre@nondot.org> | 2010-04-07 20:37:06 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2010-04-07 20:37:06 +0000 |
| commit | dec49e77e569035a0e76cb9fca6cd2e1c0e06c17 (patch) | |
| tree | bec3d2530bf1a3569e07c09a84d48efe133fc3fb /clang/lib/Basic | |
| parent | fd27fed58462229be261321c377146c045ad66ab (diff) | |
| download | bcm5719-llvm-dec49e77e569035a0e76cb9fca6cd2e1c0e06c17.tar.gz bcm5719-llvm-dec49e77e569035a0e76cb9fca6cd2e1c0e06c17.zip | |
add clang -cc1 level support for "-ferror-limit 42"
llvm-svn: 100687
Diffstat (limited to 'clang/lib/Basic')
| -rw-r--r-- | clang/lib/Basic/Diagnostic.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Basic/Diagnostic.cpp b/clang/lib/Basic/Diagnostic.cpp index 388875cf631..738c27ccae7 100644 --- a/clang/lib/Basic/Diagnostic.cpp +++ b/clang/lib/Basic/Diagnostic.cpp @@ -223,7 +223,7 @@ Diagnostic::Diagnostic(DiagnosticClient *client) : Client(client) { ErrorOccurred = false; FatalErrorOccurred = false; - MaxErrorsEmitted = 0; + ErrorLimit = 0; NumWarnings = 0; NumErrors = 0; @@ -555,7 +555,7 @@ bool Diagnostic::ProcessDiag() { // If we've emitted a lot of errors, emit a fatal error after it to stop a // flood of bogus errors. - if (MaxErrorsEmitted && NumErrors >= MaxErrorsEmitted && + if (ErrorLimit && NumErrors >= ErrorLimit && DiagLevel == Diagnostic::Error) SetDelayedDiagnostic(diag::fatal_too_many_errors); } |

