diff options
author | Nick Desaulniers <ndesaulniers@google.com> | 2022-03-14 14:08:25 -0700 |
---|---|---|
committer | Nick Desaulniers <ndesaulniers@google.com> | 2022-03-14 14:37:34 -0700 |
commit | 236695e70c41e3d649b2b8a4a72f58e4218f0aa9 (patch) | |
tree | 891245df899073317f1ee071750d310cc94d8743 /llvm/lib/LTO/LTO.cpp | |
parent | e049a87f04cff8e81b4177097a6b2fdf37c7b148 (diff) | |
download | llvm-236695e70c41e3d649b2b8a4a72f58e4218f0aa9.zip llvm-236695e70c41e3d649b2b8a4a72f58e4218f0aa9.tar.gz llvm-236695e70c41e3d649b2b8a4a72f58e4218f0aa9.tar.bz2 |
[IRLinker] make IRLinker::AddLazyFor optional (llvm::unique_function). NFC
2 of the 3 callsite of IRMover::move() pass empty lambda functions. Just
make this parameter llvm::unique_function.
Came about via discussion in D120781. Probably worth making this change
regardless of the resolution of D120781.
Reviewed By: dexonsmith
Differential Revision: https://reviews.llvm.org/D121630
Diffstat (limited to 'llvm/lib/LTO/LTO.cpp')
-rw-r--r-- | llvm/lib/LTO/LTO.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/LTO/LTO.cpp b/llvm/lib/LTO/LTO.cpp index 647b8b9..24ac938 100644 --- a/llvm/lib/LTO/LTO.cpp +++ b/llvm/lib/LTO/LTO.cpp @@ -885,8 +885,7 @@ Error LTO::linkRegularLTO(RegularLTOState::AddedModule Mod, Keep.push_back(GV); } - return RegularLTO.Mover->move(std::move(Mod.M), Keep, - [](GlobalValue &, IRMover::ValueAdder) {}, + return RegularLTO.Mover->move(std::move(Mod.M), Keep, nullptr, /* IsPerformingImport */ false); } |