[llvm] r313481 - Remove uses of deprecated std::pointer_to_unary_function.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Sun Sep 17 04:12:57 PDT 2017
Author: d0k
Date: Sun Sep 17 04:12:57 2017
New Revision: 313481
URL: http://llvm.org/viewvc/llvm-project?rev=313481&view=rev
Log:
Remove uses of deprecated std::pointer_to_unary_function.
It's removed in C++17. No functionality change intended.
Modified:
llvm/trunk/include/llvm/IR/Instructions.h
Modified: llvm/trunk/include/llvm/IR/Instructions.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/IR/Instructions.h?rev=313481&r1=313480&r2=313481&view=diff
==============================================================================
--- llvm/trunk/include/llvm/IR/Instructions.h (original)
+++ llvm/trunk/include/llvm/IR/Instructions.h Sun Sep 17 04:12:57 2017
@@ -4201,11 +4201,10 @@ private:
}
public:
- using DerefFnTy = std::pointer_to_unary_function<Value *, BasicBlock *>;
+ using DerefFnTy = BasicBlock *(*)(Value *);
using handler_iterator = mapped_iterator<op_iterator, DerefFnTy>;
using handler_range = iterator_range<handler_iterator>;
- using ConstDerefFnTy =
- std::pointer_to_unary_function<const Value *, const BasicBlock *>;
+ using ConstDerefFnTy = const BasicBlock *(*)(const Value *);
using const_handler_iterator =
mapped_iterator<const_op_iterator, ConstDerefFnTy>;
using const_handler_range = iterator_range<const_handler_iterator>;
More information about the llvm-commits
mailing list