[PATCH] D90641: [compiler-rt][AIX]: Link compiler-rt profile library when -fprofile-generate is specified
Ettore Tiotto via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Nov 2 13:18:28 PST 2020
etiotto created this revision.
etiotto added reviewers: Whitney, daltenty, hubert.reinterpretcast, cebowleratibm, phosek.
Herald added subscribers: cfe-commits, dberris.
Herald added a project: clang.
etiotto requested review of this revision.
This patch enhances the clang driver to link the runtime profile library on AIX when the -fprofile-generate option is used.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D90641
Files:
clang/lib/Driver/ToolChains/AIX.cpp
Index: clang/lib/Driver/ToolChains/AIX.cpp
===================================================================
--- clang/lib/Driver/ToolChains/AIX.cpp
+++ clang/lib/Driver/ToolChains/AIX.cpp
@@ -151,6 +151,7 @@
// Add directory to library search path.
Args.AddAllArgs(CmdArgs, options::OPT_L);
ToolChain.AddFilePathLibArgs(Args, CmdArgs);
+ ToolChain.addProfileRTLibs(Args, CmdArgs);
if (getToolChain().ShouldLinkCXXStdlib(Args))
getToolChain().AddCXXStdlibLibArgs(Args, CmdArgs);
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90641.302381.patch
Type: text/x-patch
Size: 501 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201102/9b012327/attachment.bin>
More information about the cfe-commits
mailing list