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 /lib/Frontend | |
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 'lib/Frontend')
-rw-r--r-- | lib/Frontend/CompilerInvocation.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Frontend/CompilerInvocation.cpp b/lib/Frontend/CompilerInvocation.cpp index 06d8b12e6c..2a156e6c37 100644 --- a/lib/Frontend/CompilerInvocation.cpp +++ b/lib/Frontend/CompilerInvocation.cpp @@ -409,6 +409,9 @@ 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); +// @LOCALMOD-BEGIN + Opts.InstrumentFunctionsPNaCl = Args.hasArg(OPT_finstrument_functions_pnacl); +// @LOCALMOD-END Opts.InstrumentForProfiling = Args.hasArg(OPT_pg); Opts.EmitOpenCLArgMetadata = Args.hasArg(OPT_cl_kernel_arg_info); Opts.DebugCompilationDir = Args.getLastArgValue(OPT_fdebug_compilation_dir); |