aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Analysis/DataStructure.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-03-30 04:02:41 +0000
committerChris Lattner <sabre@nondot.org>2002-03-30 04:02:41 +0000
commit5cddb2f0f8708a6bfeeeb4e49ba5cae1879dc3bb (patch)
tree38ac024436e88f4f8b0e4b617db23993209e8368 /include/llvm/Analysis/DataStructure.h
parent4c7f3dfeaac9c9ca155c00f0eb05ffa90ed317f9 (diff)
downloadexternal_llvm-5cddb2f0f8708a6bfeeeb4e49ba5cae1879dc3bb.zip
external_llvm-5cddb2f0f8708a6bfeeeb4e49ba5cae1879dc3bb.tar.gz
external_llvm-5cddb2f0f8708a6bfeeeb4e49ba5cae1879dc3bb.tar.bz2
Add an accessor
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2054 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Analysis/DataStructure.h')
-rw-r--r--include/llvm/Analysis/DataStructure.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/include/llvm/Analysis/DataStructure.h b/include/llvm/Analysis/DataStructure.h
index ae7b357..379ccfa 100644
--- a/include/llvm/Analysis/DataStructure.h
+++ b/include/llvm/Analysis/DataStructure.h
@@ -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() {