diff options
author | Ted Kremenek <kremenek@apple.com> | 2008-07-02 18:23:21 +0000 |
---|---|---|
committer | Ted Kremenek <kremenek@apple.com> | 2008-07-02 18:23:21 +0000 |
commit | 902141f74ac3a2cd41966a98cd43e8702bc05ce9 (patch) | |
tree | 2c37121118340b35907f1edced32f48f8ef25a6a /Driver/clang.cpp | |
parent | 235e031e84dd9d9aeee554db40e480f14650b527 (diff) |
Moved logic for -dump-cfg and -view-cfg into AnalysisConsumer.
Renamed -dump-cfg to -cfg-dump, and -view-cfg to -cfg-view. This naming better matches the same options for asts (e.g. -ast-dump).
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@53041 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/clang.cpp')
-rw-r--r-- | Driver/clang.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/Driver/clang.cpp b/Driver/clang.cpp index 0816f52fa4..0c6f30e20a 100644 --- a/Driver/clang.cpp +++ b/Driver/clang.cpp @@ -72,8 +72,6 @@ enum ProgActions { ASTPrint, // Parse ASTs and print them. ASTDump, // Parse ASTs and dump them. ASTView, // Parse ASTs and view them in Graphviz. - ParseCFGDump, // Parse ASTS. Build CFGs. Print CFGs. - ParseCFGView, // Parse ASTS. Build CFGs. View CFGs. TestSerialization, // Run experimental serialization code. ParsePrintCallbacks, // Parse and print each callback. ParseSyntaxOnly, // Parse and perform semantic analysis. @@ -108,10 +106,6 @@ ProgAction(llvm::cl::desc("Choose output type:"), llvm::cl::ZeroOrMore, "Build ASTs and then debug dump them"), clEnumValN(ASTView, "ast-view", "Build ASTs and view them with GraphViz"), - clEnumValN(ParseCFGDump, "dump-cfg", - "Run parser, then build and print CFGs"), - clEnumValN(ParseCFGView, "view-cfg", - "Run parser, then build and view CFGs with Graphviz"), clEnumValN(TestSerialization, "test-pickling", "Run prototype serialization code"), clEnumValN(EmitLLVM, "emit-llvm", @@ -168,6 +162,8 @@ AnalyzeAll("checker-opt-analyze-headers", static llvm::cl::list<Analyses> AnalysisList(llvm::cl::desc("Available Source Code Analyses:"), llvm::cl::values( +clEnumValN(CFGDump, "cfg-dump", "Display Control-Flow Graphs"), +clEnumValN(CFGView, "cfg-view", "View Control-Flow Graphs using GraphViz"), clEnumValN(DisplayLiveVariables, "dump-live-variables", "Print results of live variable analysis"), clEnumValN(WarnDeadStores, "warn-dead-stores", @@ -1189,12 +1185,7 @@ static ASTConsumer* CreateASTConsumer(const std::string& InFile, case EmitHTML: return CreateHTMLPrinter(OutputFile, Diag, PP, PPF); - - case ParseCFGDump: - case ParseCFGView: - return CreateCFGDumper(ProgAction == ParseCFGView, - AnalyzeSpecificFunction); - + case TestSerialization: return CreateSerializationTest(Diag, FileMgr); |