From c79346a57c3b8e332efa2c798869e8311cd19566 Mon Sep 17 00:00:00 2001 From: Argyrios Kyrtzidis Date: Thu, 18 Nov 2010 20:06:46 +0000 Subject: Since multiple diagnostics can share one diagnostic client, have the client keeping track of the total number of warnings/errors reported. llvm-svn: 119731 --- clang/lib/Frontend/ASTMerge.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'clang/lib/Frontend/ASTMerge.cpp') diff --git a/clang/lib/Frontend/ASTMerge.cpp b/clang/lib/Frontend/ASTMerge.cpp index 7c8763d09d9..d4ed8d3e038 100644 --- a/clang/lib/Frontend/ASTMerge.cpp +++ b/clang/lib/Frontend/ASTMerge.cpp @@ -69,15 +69,6 @@ void ASTMergeAction::ExecuteAction() { Importer.Import(*D); } - // Aggregate the number of warnings/errors from all diagnostics so - // that at CompilerInstance::ExecuteAction we can report the total numbers. - // FIXME: This is hacky, maybe keep track of total number of warnings/errors - // in DiagnosticClient and have CompilerInstance query that ? - CI.getDiagnostics().setNumWarnings(CI.getDiagnostics().getNumWarnings() + - Diags->getNumWarnings()); - CI.getDiagnostics().setNumErrors(CI.getDiagnostics().getNumErrors() + - Diags->getNumErrors()); - delete Unit; } -- cgit v1.2.3