diff options
Diffstat (limited to 'include/llvm/IR/Dominators.h')
| -rw-r--r-- | include/llvm/IR/Dominators.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/llvm/IR/Dominators.h b/include/llvm/IR/Dominators.h index 8f6c85f53efc0..def91e73eb1d1 100644 --- a/include/llvm/IR/Dominators.h +++ b/include/llvm/IR/Dominators.h @@ -42,7 +42,7 @@ extern template void Calculate<Function, Inverse<BasicBlock *>>( DominatorTreeBaseByGraphTraits<GraphTraits<Inverse<BasicBlock *>>> &DT, Function &F); -typedef DomTreeNodeBase<BasicBlock> DomTreeNode; +using DomTreeNode = DomTreeNodeBase<BasicBlock>; class BasicBlockEdge { const BasicBlock *Start; @@ -70,7 +70,7 @@ public: }; template <> struct DenseMapInfo<BasicBlockEdge> { - typedef DenseMapInfo<const BasicBlock *> BBInfo; + using BBInfo = DenseMapInfo<const BasicBlock *>; static unsigned getHashValue(const BasicBlockEdge *V); @@ -113,7 +113,7 @@ template <> struct DenseMapInfo<BasicBlockEdge> { /// preceding statements; this is stated only to assist human understanding. class DominatorTree : public DominatorTreeBase<BasicBlock> { public: - typedef DominatorTreeBase<BasicBlock> Base; + using Base = DominatorTreeBase<BasicBlock>; DominatorTree() : DominatorTreeBase<BasicBlock>(false) {} explicit DominatorTree(Function &F) : DominatorTreeBase<BasicBlock>(false) { @@ -168,9 +168,9 @@ public: // iterable by generic graph iterators. template <class Node, class ChildIterator> struct DomTreeGraphTraitsBase { - typedef Node *NodeRef; - typedef ChildIterator ChildIteratorType; - typedef df_iterator<Node *, df_iterator_default_set<Node*>> nodes_iterator; + using NodeRef = Node *; + using ChildIteratorType = ChildIterator; + using nodes_iterator = df_iterator<Node *, df_iterator_default_set<Node*>>; static NodeRef getEntryNode(NodeRef N) { return N; } static ChildIteratorType child_begin(NodeRef N) { return N->begin(); } @@ -212,7 +212,7 @@ class DominatorTreeAnalysis : public AnalysisInfoMixin<DominatorTreeAnalysis> { public: /// \brief Provide the result typedef for this analysis pass. - typedef DominatorTree Result; + using Result = DominatorTree; /// \brief Run the analysis pass over a function and produce a dominator tree. DominatorTree run(Function &F, FunctionAnalysisManager &); |
