diff options
author | Robert Grosse <grosse@chromium.org> | 2013-07-25 14:34:41 -0700 |
---|---|---|
committer | Robert Grosse <grosse@chromium.org> | 2013-07-25 14:34:41 -0700 |
commit | 7b390888fd9f3886d966ab072c328f4fbd9c64b4 (patch) | |
tree | 61d7d80f47627e5736931a1ae488377c92594f4c /lib/Frontend/CompilerInvocation.cpp | |
parent | 0adde5bbb53bfb2aadcb566c514efd3e218bf0bc (diff) |
Add a -finstrument-functions-size=n option to control basic block
filtering. If omitted entirely, the original behavior is restored.
This also undos the string and __pnacl_profile stuff from the previous
CL. Finally, it fixes and updates the -finstrument-function tests.
BUG=none
R=bradnelson@google.com, dschuff@chromium.org
Review URL: https://codereview.chromium.org/19793007
Diffstat (limited to 'lib/Frontend/CompilerInvocation.cpp')
-rw-r--r-- | lib/Frontend/CompilerInvocation.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index 42ea96f0f2..06d8b12e6c 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/lib/Frontend/CompilerInvocation.cpp @@ -407,6 +407,8 @@ static bool ParseCodeGenArgs(CodeGenOptions &Opts, ArgList &Args, InputKind IK, } Opts.InstrumentFunctions = Args.hasArg(OPT_finstrument_functions); + Opts.InstrumentFunctionsSize = + Args.getLastArgIntValue(OPT_finstrument_functions_size, 0); Opts.InstrumentForProfiling = Args.hasArg(OPT_pg); Opts.EmitOpenCLArgMetadata = Args.hasArg(OPT_cl_kernel_arg_info); Opts.DebugCompilationDir = Args.getLastArgValue(OPT_fdebug_compilation_dir); |