aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver
diff options
context:
space:
mode:
authorRobert Grosse <grosse@chromium.org>2013-07-25 14:34:41 -0700
committerRobert Grosse <grosse@chromium.org>2013-07-25 14:34:41 -0700
commit7b390888fd9f3886d966ab072c328f4fbd9c64b4 (patch)
tree61d7d80f47627e5736931a1ae488377c92594f4c /lib/Driver
parent0adde5bbb53bfb2aadcb566c514efd3e218bf0bc (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/Driver')
-rw-r--r--lib/Driver/Tools.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp
index aba1fe4d2d..c04fc13b23 100644
--- a/lib/Driver/Tools.cpp
+++ b/lib/Driver/Tools.cpp
@@ -2462,6 +2462,11 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
Args.AddAllArgs(CmdArgs, options::OPT_finstrument_functions);
+ if (Arg *A = Args.getLastArg(options::OPT_finstrument_functions_size_EQ)) {
+ CmdArgs.push_back("-finstrument-functions-size");
+ CmdArgs.push_back(A->getValue());
+ }
+
if (Args.hasArg(options::OPT_ftest_coverage) ||
Args.hasArg(options::OPT_coverage))
CmdArgs.push_back("-femit-coverage-notes");