[ELF] Pass callables by function_ref
authorBenjamin Kramer <benny.kra@googlemail.com>
Sat, 16 Jun 2018 12:11:34 +0000 (12:11 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sat, 16 Jun 2018 12:11:34 +0000 (12:11 +0000)
commit88e7be2e6b8e9dfbc20094e833b066c58c1ac1bc
treebddb0c5bc4a738dcb571829934035e45166dd67b
parent87bcd4abeffa4f24be049cf1027eceeddc48d49c
[ELF] Pass callables by function_ref

No need to create a heavyweight std::function if it's not stored. No
functionality change intended.

llvm-svn: 334885
lld/ELF/ICF.cpp
lld/ELF/MarkLive.cpp
lld/ELF/OutputSections.cpp
lld/ELF/OutputSections.h
lld/ELF/Relocations.cpp
lld/ELF/Relocations.h
lld/ELF/Writer.cpp