aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/gold
diff options
context:
space:
mode:
authorZequan Wu <zequanwu@google.com>2022-11-22 14:59:43 -0800
committerZequan Wu <zequanwu@google.com>2022-11-22 15:00:26 -0800
commit5d140dc2c0f3068fae7127b85df861c420848078 (patch)
treee3c85717674510f21e8844163e4cf003d918eb4d /llvm/tools/gold
parent4fd3a1201e3c27bc96ae987f04cdd720ecf632fc (diff)
downloadllvm-5d140dc2c0f3068fae7127b85df861c420848078.zip
llvm-5d140dc2c0f3068fae7127b85df861c420848078.tar.gz
llvm-5d140dc2c0f3068fae7127b85df861c420848078.tar.bz2
Fix lto AddStreamFn in gold plugin.
Diffstat (limited to 'llvm/tools/gold')
-rw-r--r--llvm/tools/gold/gold-plugin.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp
index 59cff41..f7eb7fa 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);