[IRLinker] make IRLinker::AddLazyFor optional (llvm::unique_function). NFC
authorNick Desaulniers <ndesaulniers@google.com>
Mon, 14 Mar 2022 21:08:25 +0000 (14:08 -0700)
committerNick Desaulniers <ndesaulniers@google.com>
Mon, 14 Mar 2022 21:37:34 +0000 (14:37 -0700)
commit236695e70c41e3d649b2b8a4a72f58e4218f0aa9
tree891245df899073317f1ee071750d310cc94d8743
parente049a87f04cff8e81b4177097a6b2fdf37c7b148
[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
llvm/include/llvm/Linker/IRMover.h
llvm/lib/LTO/LTO.cpp
llvm/lib/Linker/IRMover.cpp
llvm/lib/Linker/LinkModules.cpp
llvm/lib/Transforms/IPO/FunctionImport.cpp