From f2224d89a6ae65a3839529e26d0f6d025d83d6bb 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@119731 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/Frontend/ASTMerge.cpp | 9 --------- 1 file changed, 9 deletions(-) (limited to 'lib/Frontend/ASTMerge.cpp') diff --git a/lib/Frontend/ASTMerge.cpp b/lib/Frontend/ASTMerge.cpp index 7c8763d09d..d4ed8d3e03 100644 --- a/lib/Frontend/ASTMerge.cpp +++ b/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-18-g5258