Add method to get # nodes in the graph

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2098 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Chris Lattner 2002-04-04 19:20:00 +00:00
parent 8937375e4b
commit 1e10c7c278
2 changed files with 8 additions and 0 deletions

View File

@ -432,6 +432,10 @@ public:
const PointerValSet &getRetNodes() const { return RetNode; }
unsigned getGraphSize() const {
return ArgNodes.size() + AllocNodes.size() + ShadowNodes.size() +
GlobalNodes.size() + CallNodes.size();
}
void printFunction(std::ostream &O, const char *Label) const;
};

View File

@ -432,6 +432,10 @@ public:
const PointerValSet &getRetNodes() const { return RetNode; }
unsigned getGraphSize() const {
return ArgNodes.size() + AllocNodes.size() + ShadowNodes.size() +
GlobalNodes.size() + CallNodes.size();
}
void printFunction(std::ostream &O, const char *Label) const;
};