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/CloneModule.cpp | |
parent | bdc4956bac81a93d541bc2fab0fdcc7ffdeb5cdd (diff) | |
download | llvm-d3f4c05aea3781a40b8048e5192eaad3c30d165a.zip llvm-d3f4c05aea3781a40b8048e5192eaad3c30d165a.tar.gz llvm-d3f4c05aea3781a40b8048e5192eaad3c30d165a.tar.bz2 |
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/CloneModule.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/CloneModule.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Utils/CloneModule.cpp b/llvm/lib/Transforms/Utils/CloneModule.cpp index 6fb86da..4eed604 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()); |