summaryrefslogtreecommitdiffstats
path: root/clang/Driver/clang.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-02-15 00:35:38 +0000
committerTed Kremenek <kremenek@apple.com>2008-02-15 00:35:38 +0000
commite161afc4dd89357b94f8b7247029b1cbf8774e0b (patch)
tree5d4ba7fab01177c8d4842f0682227308ab052be4 /clang/Driver/clang.cpp
parent6ca3ccf519290ba7ec0776fad89c7dab5a8c4f78 (diff)
downloadbcm5719-llvm-e161afc4dd89357b94f8b7247029b1cbf8774e0b.tar.gz
bcm5719-llvm-e161afc4dd89357b94f8b7247029b1cbf8774e0b.zip
Added --grsimple-view option to clang driver; this is the same as
--grsimple except that it visualizes the ExplodedGraph using dot and outputs the current function being analyzed. --grsimple is now silent except when it emits diagnostics. llvm-svn: 47146
Diffstat (limited to 'clang/Driver/clang.cpp')
-rw-r--r--clang/Driver/clang.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/Driver/clang.cpp b/clang/Driver/clang.cpp
index c29730397f0..71291ae0a29 100644
--- a/clang/Driver/clang.cpp
+++ b/clang/Driver/clang.cpp
@@ -68,7 +68,8 @@ 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.
+ AnalysisGRSimpleVals, // Perform graph-reachability constant prop.
+ AnalysisGRSimpleValsView, // Visualize results of path-sens. analysis.
WarnDeadStores, // Run DeadStores checker on parsed ASTs.
WarnDeadStoresCheck, // Check diagnostics for "DeadStores".
WarnUninitVals, // Run UnitializedVariables checker.
@@ -115,6 +116,8 @@ ProgAction(llvm::cl::desc("Choose output type:"), llvm::cl::ZeroOrMore,
"Flag warnings of uses of unitialized variables."),
clEnumValN(AnalysisGRSimpleVals, "grsimple",
"Perform path-sensitive constant propagation."),
+ clEnumValN(AnalysisGRSimpleValsView, "grsimple-view",
+ "View results of path-sensitive constant propagation."),
clEnumValN(TestSerialization, "test-pickling",
"Run prototype serializtion code."),
clEnumValN(EmitLLVM, "emit-llvm",
@@ -974,6 +977,9 @@ static ASTConsumer* CreateASTConsumer(const std::string& InFile,
case AnalysisGRSimpleVals:
return CreateGRSimpleVals(Diag);
+ case AnalysisGRSimpleValsView:
+ return CreateGRSimpleVals(Diag, true);
+
case TestSerialization:
return CreateSerializationTest(Diag, FileMgr, LangOpts);
OpenPOWER on IntegriCloud