Remove all uses of llvm::function_ref from LLD.