aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/clang/Driver/Options.td4
-rw-r--r--include/clang/Frontend/CodeGenOptions.def3
2 files changed, 7 insertions, 0 deletions
diff --git a/include/clang/Driver/Options.td b/include/clang/Driver/Options.td
index fea7ba3c00..2582ccebac 100644
--- a/include/clang/Driver/Options.td
+++ b/include/clang/Driver/Options.td
@@ -486,6 +486,10 @@ def finstrument_functions : Flag<["-"], "finstrument-functions">, Group<f_Group>
HelpText<"Generate calls to instrument function entry and exit">;
def finstrument_functions_size_EQ : Joined<["-"], "finstrument-functions-size=">, Group<f_Group>, Flags<[CC1Option]>,
HelpText<"Set a minimum number of basic blocks for function instrumentation">;
+// @LOCALMOD-BEGIN
+def finstrument_functions_pnacl : Flag<["-"], "finstrument-functions-pnacl">, Group<f_Group>, Flags<[CC1Option]>,
+ HelpText<"If finstrument-functions is also specified, change __cyg_profile_func_x to __pnacl_profile_func_x">;
+// @LOCALMOD-END
def fkeep_inline_functions : Flag<["-"], "fkeep-inline-functions">, Group<clang_ignored_f_Group>;
def flat__namespace : Flag<["-"], "flat_namespace">;
def flax_vector_conversions : Flag<["-"], "flax-vector-conversions">, Group<f_Group>;
diff --git a/include/clang/Frontend/CodeGenOptions.def b/include/clang/Frontend/CodeGenOptions.def
index 63516e8684..c25415af20 100644
--- a/include/clang/Frontend/CodeGenOptions.def
+++ b/include/clang/Frontend/CodeGenOptions.def
@@ -65,6 +65,9 @@ CODEGENOPT(InstrumentFunctions , 1, 0) ///< Set when -finstrument-functions is
VALUE_CODEGENOPT(InstrumentFunctionsSize, 32, 0) ///< If set, only functions with
///< at least this many basic
///< blocks are instrumented.
+// @LOCALMOD-BEGIN
+CODEGENOPT(InstrumentFunctionsPNaCl , 1, 0)
+// @LOCALMOD-END
CODEGENOPT(InstrumentForProfiling , 1, 0) ///< Set when -pg is enabled.
CODEGENOPT(LessPreciseFPMAD , 1, 0) ///< Enable less precise MAD instructions to
///< be generated.