From becec2cbbc4859c49f62130aedb8c136dda8f693 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Wed, 2 Jul 2008 16:35:50 +0000 Subject: Move logic for "-checker-simple" to the new AnalysisConsumer interface. llvm-svn: 53028 --- clang/Driver/clang.cpp | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) (limited to 'clang/Driver/clang.cpp') diff --git a/clang/Driver/clang.cpp b/clang/Driver/clang.cpp index 344fe08bffd..9de09243305 100644 --- a/clang/Driver/clang.cpp +++ b/clang/Driver/clang.cpp @@ -75,8 +75,6 @@ enum ProgActions { ParseCFGDump, // Parse ASTS. Build CFGs. Print CFGs. ParseCFGView, // Parse ASTS. Build CFGs. View CFGs. AnalysisLiveVariables, // Print results of live-variable analysis. - AnalysisGRSimpleVals, // Perform graph-reachability constant prop. - AnalysisGRSimpleValsView, // Visualize results of path-sens. analysis. TestSerialization, // Run experimental serialization code. ParsePrintCallbacks, // Parse and print each callback. ParseSyntaxOnly, // Parse and perform semantic analysis. @@ -117,8 +115,6 @@ ProgAction(llvm::cl::desc("Choose output type:"), llvm::cl::ZeroOrMore, "Run parser, then build and view CFGs with Graphviz"), clEnumValN(AnalysisLiveVariables, "dump-live-variables", "Print results of live variable analysis"), - clEnumValN(AnalysisGRSimpleVals, "checker-simple", - "Perform path-sensitive constant propagation"), clEnumValN(TestSerialization, "test-pickling", "Run prototype serialization code"), clEnumValN(EmitLLVM, "emit-llvm", @@ -179,8 +175,10 @@ clEnumValN(WarnDeadStores, "warn-dead-stores", "Flag warnings of stores to dead variables"), clEnumValN(WarnUninitVals, "warn-uninit-values", "Flag warnings of uses of unitialized variables"), +clEnumValN(CheckerSimple, "checker-simple", + "Perform simple path-sensitive checks."), clEnumValN(CheckerCFRef, "checker-cfref", - "Run the [Core] Foundation reference count checker"), + "Run the [Core] Foundation reference count checker"), clEnumValEnd)); //===----------------------------------------------------------------------===// @@ -1200,11 +1198,7 @@ static ASTConsumer* CreateASTConsumer(const std::string& InFile, case AnalysisLiveVariables: return CreateLiveVarAnalyzer(AnalyzeSpecificFunction); - - case AnalysisGRSimpleVals: - return CreateGRSimpleVals(Diag, PP, PPF, AnalyzeSpecificFunction, - OutputFile, VisualizeEG, TrimGraph, AnalyzeAll); - + case TestSerialization: return CreateSerializationTest(Diag, FileMgr); -- cgit v1.2.3