Partially revert cac7aabbd82: some APIs don't have in-tree users and some build breaks weren't caught

This commit is contained in:
Mehdi Amini 2022-01-14 06:14:56 +00:00
parent b93eded7b9
commit dc9f18da86
1 changed files with 6 additions and 6 deletions

View File

@ -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