aboutsummaryrefslogtreecommitdiff
path: root/include/clang/Frontend/CodeGenOptions.def
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 /include/clang/Frontend/CodeGenOptions.def
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 'include/clang/Frontend/CodeGenOptions.def')
-rw-r--r--include/clang/Frontend/CodeGenOptions.def3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/clang/Frontend/CodeGenOptions.def b/include/clang/Frontend/CodeGenOptions.def
index f6e2472cb9..63516e8684 100644
--- a/include/clang/Frontend/CodeGenOptions.def
+++ b/include/clang/Frontend/CodeGenOptions.def
@@ -62,6 +62,9 @@ CODEGENOPT(HiddenWeakVTables , 1, 0) ///< Emit weak vtables, RTTI, and thunks wi
///< hidden visibility.
CODEGENOPT(InstrumentFunctions , 1, 0) ///< Set when -finstrument-functions is
///< enabled.
+VALUE_CODEGENOPT(InstrumentFunctionsSize, 32, 0) ///< If set, only functions with
+ ///< at least this many basic
+ ///< blocks are instrumented.
CODEGENOPT(InstrumentForProfiling , 1, 0) ///< Set when -pg is enabled.
CODEGENOPT(LessPreciseFPMAD , 1, 0) ///< Enable less precise MAD instructions to
///< be generated.