aboutsummaryrefslogtreecommitdiff
path: root/lib/Driver
diff options
context:
space:
mode:
authorRobert Grosse <grosse@chromium.org>2013-07-25 15:05:16 -0700
committerRobert Grosse <grosse@chromium.org>2013-07-25 15:05:16 -0700
commit548960c21c590dcd4919a1bba000e989c140c8ef (patch)
tree240e059006f5d8a323ef426bdbf3b7f2b3d4d3e5 /lib/Driver
parent7b390888fd9f3886d966ab072c328f4fbd9c64b4 (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/Driver')
-rw-r--r--lib/Driver/Tools.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Driver/Tools.cpp b/lib/Driver/Tools.cpp
index c04fc13b23..78e7775bff 100644
--- a/lib/Driver/Tools.cpp
+++ b/lib/Driver/Tools.cpp
@@ -2461,7 +2461,9 @@ void Clang::ConstructJob(Compilation &C, const JobAction &JA,
Args.AddAllArgs(CmdArgs, options::OPT_fdata_sections);
Args.AddAllArgs(CmdArgs, options::OPT_finstrument_functions);
-
+// @LOCALMOD-BEGIN
+ Args.AddAllArgs(CmdArgs, options::OPT_finstrument_functions_pnacl);
+// @LOCALMOD-END
if (Arg *A = Args.getLastArg(options::OPT_finstrument_functions_size_EQ)) {
CmdArgs.push_back("-finstrument-functions-size");
CmdArgs.push_back(A->getValue());