summaryrefslogtreecommitdiffstats
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorAnna Zaks <ganna@apple.com>2012-03-02 19:05:03 +0000
committerAnna Zaks <ganna@apple.com>2012-03-02 19:05:03 +0000
commit265087721ae2938b3886d68898e5eec5bd4a3816 (patch)
tree8c4ff80551678f1d0b9d09d76d43a31d4de2a09b /clang/lib/Frontend/CompilerInvocation.cpp
parent242d9838c6e203f927a38292c9c303a846a284ad (diff)
downloadbcm5719-llvm-265087721ae2938b3886d68898e5eec5bd4a3816.tar.gz
bcm5719-llvm-265087721ae2938b3886d68898e5eec5bd4a3816.zip
[analyzer] Bound the size of the functions being inlined + provide
command line options for inlining tuning. This adds the option for stack depth bound as well as function size bound. + minor doxygenification llvm-svn: 151930
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
-rw-r--r--clang/lib/Frontend/CompilerInvocation.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/clang/lib/Frontend/CompilerInvocation.cpp b/clang/lib/Frontend/CompilerInvocation.cpp
index b0c03024acd..14cdefb9afc 100644
--- a/clang/lib/Frontend/CompilerInvocation.cpp
+++ b/clang/lib/Frontend/CompilerInvocation.cpp
@@ -1047,6 +1047,12 @@ static bool ParseAnalyzerArgs(AnalyzerOptions &Opts, ArgList &Args,
if (Args.hasArg(OPT_analyzer_inline_call))
Opts.InlineCall = 1;
Opts.PrintStats = Args.hasArg(OPT_analyzer_stats);
+ Opts.InlineMaxStackDepth =
+ Args.getLastArgIntValue(OPT_analyzer_inline_max_stack_depth,
+ Opts.InlineMaxStackDepth, Diags);
+ Opts.InlineMaxFunctionSize =
+ Args.getLastArgIntValue(OPT_analyzer_inline_max_function_size,
+ Opts.InlineMaxFunctionSize, Diags);
Opts.CheckersControlList.clear();
for (arg_iterator it = Args.filtered_begin(OPT_analyzer_checker,
OpenPOWER on IntegriCloud