From d3f4c05aea3781a40b8048e5192eaad3c30d165a Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 12 Jun 2016 16:13:55 +0000 Subject: Move instances of std::function. Or replace with llvm::function_ref if it's never stored. NFC intended. llvm-svn: 272513 --- llvm/lib/Transforms/Utils/SplitModule.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/lib/Transforms/Utils/SplitModule.cpp') diff --git a/llvm/lib/Transforms/Utils/SplitModule.cpp b/llvm/lib/Transforms/Utils/SplitModule.cpp index 3db04b8..e9a368f 100644 --- a/llvm/lib/Transforms/Utils/SplitModule.cpp +++ b/llvm/lib/Transforms/Utils/SplitModule.cpp @@ -227,7 +227,7 @@ static bool isInPartition(const GlobalValue *GV, unsigned I, unsigned N) { void llvm::SplitModule( std::unique_ptr M, unsigned N, - std::function MPart)> ModuleCallback, + function_ref MPart)> ModuleCallback, bool PreserveLocals) { if (!PreserveLocals) { for (Function &F : *M) -- cgit v1.1