diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-11-18 21:13:57 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2010-11-18 21:13:57 +0000 |
commit | ab41b97c3cddf1bcdd8bf82ab09ed3ceafcd05b1 (patch) | |
tree | d09e228b46088d30b82a570a21389a48d3e81e9f /lib/Frontend/VerifyDiagnosticsClient.cpp | |
parent | dea22a399d312444b2a6bb26b4a1be7c4ded1858 (diff) |
Remove the hack where, to get the return status, we had special case for VerifyDiagnosticsClient
and just check the number of errors from the DiagnosticClient.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119736 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/VerifyDiagnosticsClient.cpp')
-rw-r--r-- | lib/Frontend/VerifyDiagnosticsClient.cpp | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/Frontend/VerifyDiagnosticsClient.cpp b/lib/Frontend/VerifyDiagnosticsClient.cpp index 31eb28f912..51b351f4a9 100644 --- a/lib/Frontend/VerifyDiagnosticsClient.cpp +++ b/lib/Frontend/VerifyDiagnosticsClient.cpp @@ -23,7 +23,7 @@ using namespace clang; VerifyDiagnosticsClient::VerifyDiagnosticsClient(Diagnostic &_Diags, DiagnosticClient *_Primary) : Diags(_Diags), PrimaryClient(_Primary), - Buffer(new TextDiagnosticBuffer()), CurrentPreprocessor(0), NumErrors(0) { + Buffer(new TextDiagnosticBuffer()), CurrentPreprocessor(0) { } VerifyDiagnosticsClient::~VerifyDiagnosticsClient() { @@ -57,14 +57,6 @@ void VerifyDiagnosticsClient::HandleDiagnostic(Diagnostic::Level DiagLevel, Buffer->HandleDiagnostic(DiagLevel, Info); } -// FIXME: It would be nice to just get this from the primary diagnostic client -// or something. -bool VerifyDiagnosticsClient::HadErrors() { - CheckDiagnostics(); - - return NumErrors != 0; -} - //===----------------------------------------------------------------------===// // Checking diagnostics implementation. //===----------------------------------------------------------------------===// |