diff options
author | Chris Lattner <sabre@nondot.org> | 2002-03-31 07:11:20 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-03-31 07:11:20 +0000 |
commit | 41deedf32fca64f806e4ba812bc364cfa1671fc4 (patch) | |
tree | b133cab6f2efe39aa324e5d31e2859229f6420e2 /include/llvm/Analysis/DataStructure.h | |
parent | f7cedec1f2c6a8b054e54f98922d5d295d086cff (diff) |
* Allow access to DSNode iterator as DSNode::iterator/begin/end
* Add debugging "dump" method to DSNode
* Fix bugs in DSNode iterator
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2060 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/DataStructure.h')
-rw-r--r-- | include/llvm/Analysis/DataStructure.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Analysis/DataStructure.h b/include/llvm/Analysis/DataStructure.h index 64cd3fc566..edb0ac5d10 100644 --- a/include/llvm/Analysis/DataStructure.h +++ b/include/llvm/Analysis/DataStructure.h @@ -19,6 +19,7 @@ class FunctionRepBuilder; class GlobalValue; class FunctionDSGraph; class DataStructure; +class DSNodeIterator; // FIXME: move this somewhere private unsigned countPointerFields(const Type *Ty); @@ -126,6 +127,10 @@ public: assert(Referrers.empty() && "Referrers to dead node exist!"); } + typedef DSNodeIterator iterator; + inline iterator begin(); // Defined in DataStructureGraph.h + inline iterator end(); + unsigned getNumLinks() const { return FieldLinks.size(); } PointerValSet &getLink(unsigned i) { assert(i < getNumLinks() && "Field links access out of range..."); @@ -163,6 +168,7 @@ public: } void print(std::ostream &O) const; + void dump() const; virtual std::string getCaption() const = 0; virtual const std::vector<PointerValSet> *getAuxLinks() const { |