diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2017-05-16 19:46:52 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2017-05-16 19:46:52 +0000 |
commit | 6b3f41ed88e8e440e11a4fbf20b6600529f80049 (patch) | |
tree | 928b056f24a634d628c80238dbbf10d41b1a71d5 /include/llvm/IR/SymbolTableListTraits.h | |
parent | c46e6a5940c50058e00c0c5f9123fd82e338d29a (diff) |
Diffstat (limited to 'include/llvm/IR/SymbolTableListTraits.h')
-rw-r--r-- | include/llvm/IR/SymbolTableListTraits.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/include/llvm/IR/SymbolTableListTraits.h b/include/llvm/IR/SymbolTableListTraits.h index 49a5fb21297d..87ce902c2811 100644 --- a/include/llvm/IR/SymbolTableListTraits.h +++ b/include/llvm/IR/SymbolTableListTraits.h @@ -48,7 +48,7 @@ class ValueSymbolTable; template <typename NodeTy> struct SymbolTableListParentType {}; #define DEFINE_SYMBOL_TABLE_PARENT_TYPE(NODE, PARENT) \ - template <> struct SymbolTableListParentType<NODE> { typedef PARENT type; }; + template <> struct SymbolTableListParentType<NODE> { using type = PARENT; }; DEFINE_SYMBOL_TABLE_PARENT_TYPE(Instruction, BasicBlock) DEFINE_SYMBOL_TABLE_PARENT_TYPE(BasicBlock, Function) DEFINE_SYMBOL_TABLE_PARENT_TYPE(Argument, Function) @@ -65,10 +65,10 @@ template <typename NodeTy> class SymbolTableList; // template <typename ValueSubClass> class SymbolTableListTraits : public ilist_alloc_traits<ValueSubClass> { - typedef SymbolTableList<ValueSubClass> ListTy; - typedef typename simple_ilist<ValueSubClass>::iterator iterator; - typedef - typename SymbolTableListParentType<ValueSubClass>::type ItemParentClass; + using ListTy = SymbolTableList<ValueSubClass>; + using iterator = typename simple_ilist<ValueSubClass>::iterator; + using ItemParentClass = + typename SymbolTableListParentType<ValueSubClass>::type; public: SymbolTableListTraits() = default; |