Add an accessor
authorChris Lattner <sabre@nondot.org>
Sat, 30 Mar 2002 04:02:41 +0000 (04:02 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 30 Mar 2002 04:02:41 +0000 (04:02 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2054 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/Analysis/DataStructure.h
include/llvm/Analysis/DataStructure/DataStructure.h

index ae7b3571da692b8b348362d45338b9a67ac0cc1a..379ccfa9136985bfa7cd233fae6819ee0a674d7a 100644 (file)
@@ -1,4 +1,4 @@
-//===- DataStructure.h - Build a Module's call graph -------------*- C++ -*--=//
+//===- DataStructure.h - Build data structure graphs -------------*- C++ -*--=//
 //
 // Implement the LLVM data structure analysis library.
 //
@@ -247,6 +247,10 @@ public:
     assert(ArgNo < ArgLinks.size() && "Arg # out of range!");
     return ArgLinks[ArgNo];
   }
+  PointerValSet &getArgValues(unsigned ArgNo) {
+    assert(ArgNo < ArgLinks.size() && "Arg # out of range!");
+    return ArgLinks[ArgNo];
+  }
   const std::vector<PointerValSet> &getArgs() const { return ArgLinks; }
 
   virtual void dropAllReferences() {
index ae7b3571da692b8b348362d45338b9a67ac0cc1a..379ccfa9136985bfa7cd233fae6819ee0a674d7a 100644 (file)
@@ -1,4 +1,4 @@
-//===- DataStructure.h - Build a Module's call graph -------------*- C++ -*--=//
+//===- DataStructure.h - Build data structure graphs -------------*- C++ -*--=//
 //
 // Implement the LLVM data structure analysis library.
 //
@@ -247,6 +247,10 @@ public:
     assert(ArgNo < ArgLinks.size() && "Arg # out of range!");
     return ArgLinks[ArgNo];
   }
+  PointerValSet &getArgValues(unsigned ArgNo) {
+    assert(ArgNo < ArgLinks.size() && "Arg # out of range!");
+    return ArgLinks[ArgNo];
+  }
   const std::vector<PointerValSet> &getArgs() const { return ArgLinks; }
 
   virtual void dropAllReferences() {