[PATCH] D137375: [AIX][pg] Add Correct Search Paths for Profiled Libraries
Michael Francis via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Sun Nov 13 10:54:07 PST 2022
francii updated this revision to Diff 475006.
francii added a comment.
Removed unnecessary variables
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D137375/new/
https://reviews.llvm.org/D137375
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
@@ -245,20 +245,15 @@
CmdArgs.push_back("-lc");
if (Args.hasArg(options::OPT_pg)) {
- const char *libProfiled;
- const char *usrLibProfiled;
-
if (!D.SysRoot.empty()) {
- libProfiled = Args.MakeArgString((llvm::Twine("-L") + D.SysRoot) +
- "/lib/profiled");
- usrLibProfiled = Args.MakeArgString((llvm::Twine("-L") + D.SysRoot) +
- "/usr/lib/profiled");
+ CmdArgs.push_back(Args.MakeArgString((llvm::Twine("-L") + D.SysRoot) +
+ "/lib/profiled"));
+ CmdArgs.push_back(Args.MakeArgString((llvm::Twine("-L") + D.SysRoot) +
+ "/usr/lib/profiled"));
} else {
- libProfiled = Args.MakeArgString(llvm::Twine("-L/lib/profiled"));
- usrLibProfiled = Args.MakeArgString(llvm::Twine("-L/usr/lib/profiled"));
+ CmdArgs.push_back("-L/lib/profiled");
+ CmdArgs.push_back("-L/usr/lib/profiled");
}
- CmdArgs.push_back(libProfiled);
- CmdArgs.push_back(usrLibProfiled);
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D137375.475006.patch
Type: text/x-patch
Size: 1340 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20221113/fb51b39d/attachment.bin>
More information about the cfe-commits
mailing list