diff options
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; |