projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4fd3a12
)
Fix lto AddStreamFn in gold plugin.
author
Zequan Wu
<zequanwu@google.com>
Tue, 22 Nov 2022 22:59:43 +0000
(14:59 -0800)
committer
Zequan Wu
<zequanwu@google.com>
Tue, 22 Nov 2022 23:00:26 +0000
(15:00 -0800)
llvm/tools/gold/gold-plugin.cpp
patch
|
blob
|
history
diff --git
a/llvm/tools/gold/gold-plugin.cpp
b/llvm/tools/gold/gold-plugin.cpp
index
59cff41
..
f7eb7fa
100644
(file)
--- 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);