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
diff --git a/Driver/clang.cpp b/Driver/clang.cpp
index 08eef52..15384c5 100644
--- a/Driver/clang.cpp
+++ b/Driver/clang.cpp
@@ -978,7 +978,8 @@
case ParseCFGDump:
case ParseCFGView:
- return CreateCFGDumper(ProgAction == ParseCFGView);
+ return CreateCFGDumper(ProgAction == ParseCFGView,
+ AnalyzeSpecificFunction);
case AnalysisLiveVariables:
return CreateLiveVarAnalyzer();