diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2016-06-12 16:13:55 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2016-06-12 16:13:55 +0000 |
commit | d3f4c05aea3781a40b8048e5192eaad3c30d165a (patch) | |
tree | 0e501afe0df503cf86afe76a7324ce00c6460094 /llvm/lib/Transforms/Utils | |
parent | bdc4956bac81a93d541bc2fab0fdcc7ffdeb5cdd (diff) | |
download | bcm5719-llvm-d3f4c05aea3781a40b8048e5192eaad3c30d165a.tar.gz bcm5719-llvm-d3f4c05aea3781a40b8048e5192eaad3c30d165a.zip |
Move instances of std::function.
Or replace with llvm::function_ref if it's never stored. NFC intended.
llvm-svn: 272513
Diffstat (limited to 'llvm/lib/Transforms/Utils')
-rw-r--r-- | llvm/lib/Transforms/Utils/CloneModule.cpp | 2 | ||||
-rw-r--r-- | llvm/lib/Transforms/Utils/SplitModule.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneModule.cpp b/llvm/lib/Transforms/Utils/CloneModule.cpp index 6fb86da9cc0..4eed60492a7 100644 --- a/llvm/lib/Transforms/Utils/CloneModule.cpp +++ b/llvm/lib/Transforms/Utils/CloneModule.cpp @@ -38,7 +38,7 @@ std::unique_ptr<Module> llvm::CloneModule(const Module *M, std::unique_ptr<Module> llvm::CloneModule( const Module *M, ValueToValueMapTy &VMap, - std::function<bool(const GlobalValue *)> ShouldCloneDefinition) { + function_ref<bool(const GlobalValue *)> ShouldCloneDefinition) { // First off, we need to create the new module. std::unique_ptr<Module> New = llvm::make_unique<Module>(M->getModuleIdentifier(), M->getContext()); diff --git a/llvm/lib/Transforms/Utils/SplitModule.cpp b/llvm/lib/Transforms/Utils/SplitModule.cpp index 3db04b8b34c..e9a368f4faa 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<Module> M, unsigned N, - std::function<void(std::unique_ptr<Module> MPart)> ModuleCallback, + function_ref<void(std::unique_ptr<Module> MPart)> ModuleCallback, bool PreserveLocals) { if (!PreserveLocals) { for (Function &F : *M) |