forked from OSchip/llvm-project
Partially revert cac7aabbd82: some APIs don't have in-tree users and some build breaks weren't caught
This commit is contained in:
parent
b93eded7b9
commit
dc9f18da86
|
@ -207,9 +207,9 @@ struct GraphTraits<mlir::DominanceInfoNode *> {
|
|||
using ChildIteratorType = mlir::DominanceInfoNode::const_iterator;
|
||||
using NodeRef = mlir::DominanceInfoNode *;
|
||||
|
||||
static NodeRef getEntryNode(NodeRef n) { return n; }
|
||||
static inline ChildIteratorType childBegin(NodeRef n) { return n->begin(); }
|
||||
static inline ChildIteratorType childEnd(NodeRef n) { return n->end(); }
|
||||
static NodeRef getEntryNode(NodeRef N) { return N; }
|
||||
static inline ChildIteratorType child_begin(NodeRef N) { return N->begin(); }
|
||||
static inline ChildIteratorType child_end(NodeRef N) { return N->end(); }
|
||||
};
|
||||
|
||||
template <>
|
||||
|
@ -217,9 +217,9 @@ struct GraphTraits<const mlir::DominanceInfoNode *> {
|
|||
using ChildIteratorType = mlir::DominanceInfoNode::const_iterator;
|
||||
using NodeRef = const mlir::DominanceInfoNode *;
|
||||
|
||||
static NodeRef getEntryNode(NodeRef n) { return n; }
|
||||
static inline ChildIteratorType childBegin(NodeRef n) { return n->begin(); }
|
||||
static inline ChildIteratorType childEnd(NodeRef n) { return n->end(); }
|
||||
static NodeRef getEntryNode(NodeRef N) { return N; }
|
||||
static inline ChildIteratorType child_begin(NodeRef N) { return N->begin(); }
|
||||
static inline ChildIteratorType child_end(NodeRef N) { return N->end(); }
|
||||
};
|
||||
|
||||
} // namespace llvm
|
||||
|
|
Loading…
Reference in New Issue