aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Driver/Tools.cpp
diff options
context:
space:
mode:
authorJustin Bogner <mail@justinbogner.com>2015-05-12 05:44:36 +0000
committerJustin Bogner <mail@justinbogner.com>2015-05-12 05:44:36 +0000
commitc7701240edd7c32b45c8193c40242e6ebf78fe9e (patch)
treefdd3e0ed249954451d84586cd52c1a5554b5bb90 /clang/lib/Driver/Tools.cpp
parenta0ff540b7e16fae62f8be0fedf65fe8ff20fbcf5 (diff)
downloadllvm-c7701240edd7c32b45c8193c40242e6ebf78fe9e.zip
llvm-c7701240edd7c32b45c8193c40242e6ebf78fe9e.tar.gz
llvm-c7701240edd7c32b45c8193c40242e6ebf78fe9e.tar.bz2
Re-apply "Driver: Make profiling flags work with -nostdlib on Darwin"
This time without a stray "true" in an argument list. This reverts r237077, restoring r237074. llvm-svn: 237091
Diffstat (limited to 'clang/lib/Driver/Tools.cpp')
-rw-r--r--clang/lib/Driver/Tools.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang/lib/Driver/Tools.cpp b/clang/lib/Driver/Tools.cpp
index e215b6e..c1b5158 100644
--- a/clang/lib/Driver/Tools.cpp
+++ b/clang/lib/Driver/Tools.cpp
@@ -6328,6 +6328,11 @@ void darwin::Link::ConstructJob(Compilation &C, const JobAction &JA,
if (Args.hasArg(options::OPT_fnested_functions))
CmdArgs.push_back("-allow_stack_execute");
+ // TODO: It would be nice to use addProfileRT() here, but darwin's compiler-rt
+ // paths are different enough from other toolchains that this needs a fair
+ // amount of refactoring done first.
+ getMachOToolChain().addProfileRTLibs(Args, CmdArgs);
+
if (!Args.hasArg(options::OPT_nostdlib) &&
!Args.hasArg(options::OPT_nodefaultlibs)) {
if (getToolChain().getDriver().CCCIsCXX())