[llvm] 5d140dc - Fix lto AddStreamFn in gold plugin.
Zequan Wu via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 22 15:00:35 PST 2022
Author: Zequan Wu
Date: 2022-11-22T15:00:26-08:00
New Revision: 5d140dc2c0f3068fae7127b85df861c420848078
URL: https://github.com/llvm/llvm-project/commit/5d140dc2c0f3068fae7127b85df861c420848078
DIFF: https://github.com/llvm/llvm-project/commit/5d140dc2c0f3068fae7127b85df861c420848078.diff
LOG: Fix lto AddStreamFn in gold plugin.
Added:
Modified:
llvm/tools/gold/gold-plugin.cpp
Removed:
################################################################################
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp
index 59cff41bf3c6..f7eb7fae39b5 100644
--- a/llvm/tools/gold/gold-plugin.cpp
+++ b/llvm/tools/gold/gold-plugin.cpp
@@ -1091,7 +1091,9 @@ static std::vector<std::pair<SmallString<128>, bool>> runLTO() {
size_t MaxTasks = Lto->getMaxTasks();
std::vector<std::pair<SmallString<128>, bool>> Files(MaxTasks);
- auto AddStream = [&](size_t Task) -> std::unique_ptr<CachedFileStream> {
+ auto AddStream =
+ [&](size_t Task,
+ const Twine &ModuleName) -> std::unique_ptr<CachedFileStream> {
Files[Task].second = !SaveTemps;
int FD = getOutputFileName(Filename, /* TempOutFile */ !SaveTemps,
Files[Task].first, Task);
More information about the llvm-commits
mailing list