summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/VerifyDiagnosticsClient.cpp
diff options
context:
space:
mode:
authorArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-11-18 21:13:57 +0000
committerArgyrios Kyrtzidis <akyrtzi@gmail.com>2010-11-18 21:13:57 +0000
commitbc4679335c3a14aa3080f8367d69dca1880f0640 (patch)
tree58db7aff0e77f4f49a1e0314cc56d21a50efc86a /clang/lib/Frontend/VerifyDiagnosticsClient.cpp
parent6d35b5a2107f09291453ecd944951e53ef4ae0f3 (diff)
downloadbcm5719-llvm-bc4679335c3a14aa3080f8367d69dca1880f0640.tar.gz
bcm5719-llvm-bc4679335c3a14aa3080f8367d69dca1880f0640.zip
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. llvm-svn: 119736
Diffstat (limited to 'clang/lib/Frontend/VerifyDiagnosticsClient.cpp')
-rw-r--r--clang/lib/Frontend/VerifyDiagnosticsClient.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/clang/lib/Frontend/VerifyDiagnosticsClient.cpp b/clang/lib/Frontend/VerifyDiagnosticsClient.cpp
index 31eb28f912c..51b351f4a92 100644
--- a/clang/lib/Frontend/VerifyDiagnosticsClient.cpp
+++ b/clang/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.
//===----------------------------------------------------------------------===//
OpenPOWER on IntegriCloud