mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-22 10:24:26 +00:00
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:
@ -432,6 +432,10 @@ public:
|
|||||||
|
|
||||||
const PointerValSet &getRetNodes() const { return RetNode; }
|
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;
|
void printFunction(std::ostream &O, const char *Label) const;
|
||||||
};
|
};
|
||||||
|
@ -432,6 +432,10 @@ public:
|
|||||||
|
|
||||||
const PointerValSet &getRetNodes() const { return RetNode; }
|
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;
|
void printFunction(std::ostream &O, const char *Label) const;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user