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 | f992cfb4abac2a3639c562e05dd55c73377d4c8e (patch) | |
| tree | b850c6241effff5e7de070bd861185ca72d0d635 /clang/Driver/clang.cpp | |
| parent | 6acc782dadc390afea23a0b9df93aa430fe6d581 (diff) | |
| download | bcm5719-llvm-f992cfb4abac2a3639c562e05dd55c73377d4c8e.tar.gz bcm5719-llvm-f992cfb4abac2a3639c562e05dd55c73377d4c8e.zip | |
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).
llvm-svn: 53041
Diffstat (limited to 'clang/Driver/clang.cpp')
| -rw-r--r-- | clang/Driver/clang.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/clang/Driver/clang.cpp b/clang/Driver/clang.cpp index 0816f52fa46..0c6f30e20aa 100644 --- a/clang/Driver/clang.cpp +++ b/clang/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); |

