summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/ToolChains.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-03-28 17:53:22 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2014-03-28 17:53:22 +0000
commitd971cd1b181557eaac297410ce809dcdf441f211 (patch)
tree9c4c9aa5fc3c59d8f7ed37d734803d44aa4e137f /clang/lib/Driver/ToolChains.cpp
parent2d8f93e8692d743a17c737a5376b2051ad303320 (diff)
downloadbcm5719-llvm-d971cd1b181557eaac297410ce809dcdf441f211.tar.gz
bcm5719-llvm-d971cd1b181557eaac297410ce809dcdf441f211.zip
InstrProf: Emit runtime hook directly in IRGen
-u behaviour is apparently not portable between linkers (see cfe-commits discussions for r204379 and r205012). I've moved the logic to IRGen, where it should have been in the first place. I don't have a Linux system to test this on, so it's possible this logic *still* doesn't pull in the instrumented profiling runtime on Linux. I'm in the process of getting tests going on the compiler-rt side (llvm-commits "[PATCH] InstrProf: Add initial compiler-rt test"). Once we have tests for the full flow there, the runtime logic should get a whole lot less brittle. <rdar://problem/16458307> llvm-svn: 205023
Diffstat (limited to 'clang/lib/Driver/ToolChains.cpp')
-rw-r--r--clang/lib/Driver/ToolChains.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/clang/lib/Driver/ToolChains.cpp b/clang/lib/Driver/ToolChains.cpp
index b348d6c24d6..4bb8332ea7d 100644
--- a/clang/lib/Driver/ToolChains.cpp
+++ b/clang/lib/Driver/ToolChains.cpp
@@ -325,13 +325,6 @@ void DarwinClang::AddLinkRuntimeLibArgs(const ArgList &Args,
Args.hasArg(options::OPT_fprofile_instr_generate) ||
Args.hasArg(options::OPT_fcreate_profile) ||
Args.hasArg(options::OPT_coverage)) {
- // Pull in runtime for -fprofile-inst-generate. This is required since
- // there are no calls to the runtime in the code.
- if (Args.hasArg(options::OPT_fprofile_instr_generate)) {
- CmdArgs.push_back("-u");
- CmdArgs.push_back("___llvm_profile_runtime");
- }
-
// Select the appropriate runtime library for the target.
if (isTargetIOSBased())
AddLinkRuntimeLib(Args, CmdArgs, "libclang_rt.profile_ios.a");
OpenPOWER on IntegriCloud