summaryrefslogtreecommitdiffstats
path: root/clang/lib/Driver/Tools.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/Tools.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/Tools.cpp')
-rw-r--r--clang/lib/Driver/Tools.cpp7
1 files changed, 0 insertions, 7 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp
index 2141cc9656b..9a31eb9f9d6 100644
--- a/clang/lib/Driver/Tools.cpp
+++ b/clang/lib/Driver/Tools.cpp
@@ -1817,13 +1817,6 @@ static void addProfileRT(
Args.hasArg(options::OPT_coverage)))
return;
- // 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");
- }
-
SmallString<128> LibProfile = getCompilerRTLibDir(TC);
llvm::sys::path::append(LibProfile,
Twine("libclang_rt.profile-") + getArchNameForCompilerRTLib(TC) + ".a");
OpenPOWER on IntegriCloud