diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2020-01-29 02:12:23 +0100 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2020-01-29 02:12:53 +0100 |
commit | 2d92336db0087ad295401865d7749d4d1cfe4846 (patch) | |
tree | a3604642e9ed9f420628a6d77d8f4b9e30ff7edc /llvm/tools/gold | |
parent | ede5cd9a45bd12c0676da80472e629801faa37bf (diff) | |
download | llvm-2d92336db0087ad295401865d7749d4d1cfe4846.zip llvm-2d92336db0087ad295401865d7749d4d1cfe4846.tar.gz llvm-2d92336db0087ad295401865d7749d4d1cfe4846.tar.bz2 |
Another stab at making the gold plugin compile again
Diffstat (limited to 'llvm/tools/gold')
-rw-r--r-- | llvm/tools/gold/gold-plugin.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index d0d837f..f68f718 100644 --- a/llvm/tools/gold/gold-plugin.cpp +++ b/llvm/tools/gold/gold-plugin.cpp @@ -685,8 +685,8 @@ static void getThinLTOOldAndNewSuffix(std::string &OldSuffix, options::thinlto_object_suffix_replace.find(";") != StringRef::npos); StringRef SuffixReplace = options::thinlto_object_suffix_replace; auto Split = SuffixReplace.split(';'); - OldSuffix = Split.first; - NewSuffix = Split.second; + OldSuffix = std::string(Split.first); + NewSuffix = std::string(Split.second); } /// Given the original \p Path to an output file, replace any filename @@ -839,7 +839,9 @@ static void getThinLTOOldAndNewPrefix(std::string &OldPrefix, std::string &NewPrefix) { StringRef PrefixReplace = options::thinlto_prefix_replace; assert(PrefixReplace.empty() || PrefixReplace.find(";") != StringRef::npos); - std::tie(OldPrefix, NewPrefix) = PrefixReplace.split(';'); + auto Split = PrefixReplace.split(';'); + OldPrefix = std::string(Split.first); + NewPrefix = std::string(Split.second); } /// Creates instance of LTO. |