summaryrefslogtreecommitdiff
path: root/lld/MachO
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2023-04-26 20:43:11 -0700
committerFangrui Song <i@maskray.me>2023-04-26 20:43:11 -0700
commit71cb689661ab107986a3773571ab9985d6c47114 (patch)
tree6bfc45c77f2a22d6fd2a2bdd83c66571c14be5a9 /lld/MachO
parent1855c0a82a2798276cafe765d825ac7875f5bf1d (diff)
downloadllvm-71cb689661ab107986a3773571ab9985d6c47114.tar.gz
[LTO] Change getThinLTOOutputFile to take StringRef
Diffstat (limited to 'lld/MachO')
-rw-r--r--lld/MachO/LTO.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/lld/MachO/LTO.cpp b/lld/MachO/LTO.cpp
index 481ac9444ef0..a2d3934c5bce 100644
--- a/lld/MachO/LTO.cpp
+++ b/lld/MachO/LTO.cpp
@@ -46,9 +46,8 @@ static std::unique_ptr<raw_fd_ostream> openFile(StringRef file) {
}
static std::string getThinLTOOutputFile(StringRef modulePath) {
- return lto::getThinLTOOutputFile(
- std::string(modulePath), std::string(config->thinLTOPrefixReplaceOld),
- std::string(config->thinLTOPrefixReplaceNew));
+ return lto::getThinLTOOutputFile(modulePath, config->thinLTOPrefixReplaceOld,
+ config->thinLTOPrefixReplaceNew);
}
static lto::Config createConfig() {