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/CodeGen/AtomicExpandPass.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/CodeGen/AtomicExpandPass.cpp')
-rw-r--r-- | llvm/lib/CodeGen/AtomicExpandPass.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/AtomicExpandPass.cpp b/llvm/lib/CodeGen/AtomicExpandPass.cpp index 433ba94..4b26b64 100644 --- a/llvm/lib/CodeGen/AtomicExpandPass.cpp +++ b/llvm/lib/CodeGen/AtomicExpandPass.cpp @@ -59,7 +59,7 @@ namespace { bool tryExpandAtomicRMW(AtomicRMWInst *AI); bool expandAtomicOpToLLSC( Instruction *I, Value *Addr, AtomicOrdering MemOpOrder, - std::function<Value *(IRBuilder<> &, Value *)> PerformOp); + function_ref<Value *(IRBuilder<> &, Value *)> PerformOp); AtomicCmpXchgInst *convertCmpXchgToIntegerType(AtomicCmpXchgInst *CI); bool expandAtomicCmpXchg(AtomicCmpXchgInst *CI); bool isIdempotentRMW(AtomicRMWInst *AI); @@ -514,7 +514,7 @@ bool AtomicExpand::tryExpandAtomicRMW(AtomicRMWInst *AI) { bool AtomicExpand::expandAtomicOpToLLSC( Instruction *I, Value *Addr, AtomicOrdering MemOpOrder, - std::function<Value *(IRBuilder<> &, Value *)> PerformOp) { + function_ref<Value *(IRBuilder<> &, Value *)> PerformOp) { BasicBlock *BB = I->getParent(); Function *F = BB->getParent(); LLVMContext &Ctx = F->getContext(); |