aboutsummaryrefslogtreecommitdiff
path: root/Driver/clang.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2008-02-22 20:00:31 +0000
committerTed Kremenek <kremenek@apple.com>2008-02-22 20:00:31 +0000
commit5f39c2dbd4585cff6df5af27d9001750e15cbce5 (patch)
treed5dda966642e8eed29e428ee657d9e85973b2337 /Driver/clang.cpp
parent71ac9c45c718e77667659e7fd3d19cebb1401d4f (diff)
clang driver options --dump-cfg and --view-cfg now (optionally) use the
--analyze-function option to dump/view the CFGs of specific functions. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@47497 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Driver/clang.cpp')
-rw-r--r--Driver/clang.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index 08eef52acc..15384c5f1c 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -978,7 +978,8 @@ static ASTConsumer* CreateASTConsumer(const std::string& InFile,
case ParseCFGDump:
case ParseCFGView:
- return CreateCFGDumper(ProgAction == ParseCFGView);
+ return CreateCFGDumper(ProgAction == ParseCFGView,
+ AnalyzeSpecificFunction);
case AnalysisLiveVariables:
return CreateLiveVarAnalyzer();