[cfe-commits] r58282 - in /cfe/trunk/Driver: DiagChecker.cpp clang.cpp clang.h
Daniel Dunbar
daniel at zuster.org
Mon Oct 27 15:03:52 PDT 2008
Author: ddunbar
Date: Mon Oct 27 17:03:52 2008
New Revision: 58282
URL: http://llvm.org/viewvc/llvm-project?rev=58282&view=rev
Log:
Remove unneeded CheckASTConsumer function.
- No functionality change.
Modified:
cfe/trunk/Driver/DiagChecker.cpp
cfe/trunk/Driver/clang.cpp
cfe/trunk/Driver/clang.h
Modified: cfe/trunk/Driver/DiagChecker.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/DiagChecker.cpp?rev=58282&r1=58281&r2=58282&view=diff
==============================================================================
--- cfe/trunk/Driver/DiagChecker.cpp (original)
+++ cfe/trunk/Driver/DiagChecker.cpp Mon Oct 27 17:03:52 2008
@@ -252,14 +252,6 @@
}
-/// CheckASTConsumer - Implement diagnostic checking for AST consumers.
-bool clang::CheckASTConsumer(Preprocessor &PP, ASTConsumer* C) {
-
- // Parse the AST and run the consumer, ultimately deleting C.
- ParseAST(PP, C);
- return CheckDiagnostics(PP);
-}
-
/// CheckDiagnostics - Gather the expected diagnostics and check them.
bool clang::CheckDiagnostics(Preprocessor &PP) {
// Gather the set of expected diagnostics.
Modified: cfe/trunk/Driver/clang.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.cpp?rev=58282&r1=58281&r2=58282&view=diff
==============================================================================
--- cfe/trunk/Driver/clang.cpp (original)
+++ cfe/trunk/Driver/clang.cpp Mon Oct 27 17:03:52 2008
@@ -1221,7 +1221,6 @@
///
static void ProcessInputFile(Preprocessor &PP, PreprocessorFactory &PPF,
const std::string &InFile, ProgActions PA) {
-
llvm::OwningPtr<ASTConsumer> Consumer;
bool ClearSourceMgr = false;
@@ -1318,15 +1317,11 @@
break;
}
- if (Consumer) {
- if (VerifyDiagnostics)
- exit(CheckASTConsumer(PP, Consumer.get()));
-
+ if (Consumer)
ParseAST(PP, Consumer.get(), Stats, !DisableFree);
- } else {
- if (VerifyDiagnostics)
- exit(CheckDiagnostics(PP));
- }
+
+ if (VerifyDiagnostics)
+ exit(CheckDiagnostics(PP));
if (Stats) {
fprintf(stderr, "\nSTATISTICS FOR '%s':\n", InFile.c_str());
Modified: cfe/trunk/Driver/clang.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/Driver/clang.h?rev=58282&r1=58281&r2=58282&view=diff
==============================================================================
--- cfe/trunk/Driver/clang.h (original)
+++ cfe/trunk/Driver/clang.h Mon Oct 27 17:03:52 2008
@@ -43,9 +43,6 @@
/// EmitLLVMFromASTs - Implement -emit-llvm, which generates llvm IR from C.
void EmitLLVMFromASTs(Preprocessor &PP, bool PrintStats);
-
-/// CheckASTConsumer - Implement diagnostic checking for AST consumers.
-bool CheckASTConsumer(Preprocessor &PP, ASTConsumer* C);
/// CheckDiagnostics - Gather the expected diagnostics and check them.
bool CheckDiagnostics(Preprocessor &PP);
More information about the cfe-commits
mailing list