[llvm-commits] CVS: llvm/include/llvm/Support/CFG.h
Chris Lattner
lattner at cs.uiuc.edu
Sat Sep 20 09:40:16 PDT 2003
Changes in directory llvm/include/llvm/Support:
CFG.h updated: 1.12 -> 1.13
---
Log message:
Rename Function::getEntryNode -> getEntryBlock
---
Diffs of the changes:
Index: llvm/include/llvm/Support/CFG.h
diff -u llvm/include/llvm/Support/CFG.h:1.12 llvm/include/llvm/Support/CFG.h:1.13
--- llvm/include/llvm/Support/CFG.h:1.12 Sat Jun 21 22:07:01 2003
+++ llvm/include/llvm/Support/CFG.h Sat Sep 20 09:39:18 2003
@@ -217,7 +217,7 @@
// 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<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<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();
}
};
More information about the llvm-commits
mailing list