mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Rename Function::getEntryNode -> getEntryBlock
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8625 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -217,7 +217,7 @@ template <> struct GraphTraits<Inverse<const BasicBlock*> > {
|
||||
// except that the root node is implicitly the first node of the function.
|
||||
//
|
||||
template <> struct GraphTraits<Function*> : public GraphTraits<BasicBlock*> {
|
||||
static NodeType *getEntryNode(Function *F) { return &F->getEntryNode(); }
|
||||
static NodeType *getEntryNode(Function *F) { return &F->getEntryBlock(); }
|
||||
|
||||
// nodes_iterator/begin/end - Allow iteration over all nodes in the graph
|
||||
typedef Function::iterator nodes_iterator;
|
||||
@@ -226,7 +226,7 @@ template <> struct GraphTraits<Function*> : public GraphTraits<BasicBlock*> {
|
||||
};
|
||||
template <> struct GraphTraits<const Function*> :
|
||||
public GraphTraits<const BasicBlock*> {
|
||||
static NodeType *getEntryNode(const Function *F) { return &F->getEntryNode();}
|
||||
static NodeType *getEntryNode(const Function *F) {return &F->getEntryBlock();}
|
||||
|
||||
// nodes_iterator/begin/end - Allow iteration over all nodes in the graph
|
||||
typedef Function::const_iterator nodes_iterator;
|
||||
@@ -243,13 +243,13 @@ template <> struct GraphTraits<const Function*> :
|
||||
template <> struct GraphTraits<Inverse<Function*> > :
|
||||
public GraphTraits<Inverse<BasicBlock*> > {
|
||||
static NodeType *getEntryNode(Inverse<Function*> G) {
|
||||
return &G.Graph->getEntryNode();
|
||||
return &G.Graph->getEntryBlock();
|
||||
}
|
||||
};
|
||||
template <> struct GraphTraits<Inverse<const Function*> > :
|
||||
public GraphTraits<Inverse<const BasicBlock*> > {
|
||||
static NodeType *getEntryNode(Inverse<const Function *> G) {
|
||||
return &G.Graph->getEntryNode();
|
||||
return &G.Graph->getEntryBlock();
|
||||
}
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user