summaryrefslogtreecommitdiffstats
path: root/clang/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
commit88329bf0ea6dab94f2496f8304884604b7ee4056 (patch)
treea8b260b2f27444240461770052c752a81ed0963e /clang/Driver/clang.cpp
parenta1977d32f04c60d2f415b6bc197dbd48ae519696 (diff)
downloadbcm5719-llvm-88329bf0ea6dab94f2496f8304884604b7ee4056.tar.gz
bcm5719-llvm-88329bf0ea6dab94f2496f8304884604b7ee4056.zip
clang driver options --dump-cfg and --view-cfg now (optionally) use the
--analyze-function option to dump/view the CFGs of specific functions. llvm-svn: 47497
Diffstat (limited to 'clang/Driver/clang.cpp')
-rw-r--r--clang/Driver/clang.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/Driver/clang.cpp b/clang/Driver/clang.cpp
index 08eef52acc5..15384c5f1c2 100644
--- a/clang/Driver/clang.cpp
+++ b/clang/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();
OpenPOWER on IntegriCloud