mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-14 02:33:53 +00:00
Move operator[] to DomTreeNodeBase
The comment in base even refers to it, but it was only defined in the subclass. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212169 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d0fb0f421f
commit
f5ec1bd705
@ -97,10 +97,6 @@ public:
|
|||||||
bool dominates(const BasicBlockEdge &BBE, const Use &U) const;
|
bool dominates(const BasicBlockEdge &BBE, const Use &U) const;
|
||||||
bool dominates(const BasicBlockEdge &BBE, const BasicBlock *BB) const;
|
bool dominates(const BasicBlockEdge &BBE, const BasicBlock *BB) const;
|
||||||
|
|
||||||
inline DomTreeNode *operator[](BasicBlock *BB) const {
|
|
||||||
return getNode(BB);
|
|
||||||
}
|
|
||||||
|
|
||||||
// Ensure base class overloads are visible.
|
// Ensure base class overloads are visible.
|
||||||
using Base::isReachableFromEntry;
|
using Base::isReachableFromEntry;
|
||||||
|
|
||||||
|
@ -330,6 +330,10 @@ public:
|
|||||||
return DomTreeNodes.lookup(BB);
|
return DomTreeNodes.lookup(BB);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
inline DomTreeNodeBase<NodeT> *operator[](NodeT *BB) const {
|
||||||
|
return getNode(BB);
|
||||||
|
}
|
||||||
|
|
||||||
/// getRootNode - This returns the entry node for the CFG of the function. If
|
/// getRootNode - This returns the entry node for the CFG of the function. If
|
||||||
/// this tree represents the post-dominance relations for a function, however,
|
/// this tree represents the post-dominance relations for a function, however,
|
||||||
/// this root may be a node with the block == NULL. This is the case when
|
/// this root may be a node with the block == NULL. This is the case when
|
||||||
|
Loading…
x
Reference in New Issue
Block a user