diff options
author | Robert Grosse <grosse@chromium.org> | 2013-07-25 15:05:16 -0700 |
---|---|---|
committer | Robert Grosse <grosse@chromium.org> | 2013-07-25 15:05:16 -0700 |
commit | 548960c21c590dcd4919a1bba000e989c140c8ef (patch) | |
tree | 240e059006f5d8a323ef426bdbf3b7f2b3d4d3e5 /include/clang/Frontend/CodeGenOptions.def | |
parent | 7b390888fd9f3886d966ab072c328f4fbd9c64b4 (diff) |
Change __cyg_profile_func_enter/exit to __pnacl_profile... and change the signature.
__pnacl_profile_function_x takes a single argument - the name of the current function as a constant string, rather than a pair of function addresses like __cyg takes. This makes it work even in PNaCl and removes the need to track symbol information separately.
BUG=none
R=dschuff@chromium.org
Review URL: https://codereview.chromium.org/20000003
Diffstat (limited to 'include/clang/Frontend/CodeGenOptions.def')
-rw-r--r-- | include/clang/Frontend/CodeGenOptions.def | 3 |
1 files changed, 3 insertions, 0 deletions
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. |