diff options
author | Anna Zaks <ganna@apple.com> | 2012-03-02 19:05:03 +0000 |
---|---|---|
committer | Anna Zaks <ganna@apple.com> | 2012-03-02 19:05:03 +0000 |
commit | 8235f9c9c8b3d1737d1c6bd57f7ba3f616b92392 (patch) | |
tree | 113e0a9da5153cb827f6dcb5651d7db7d07379cc /lib/Frontend/CompilerInvocation.cpp | |
parent | f4c3db175101cbf94dad59419c3ed7aed51bf606 (diff) |
[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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@151930 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | lib/Frontend/CompilerInvocation.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index b0c03024ac..14cdefb9af 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/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, |