diff options
author | Chris Lattner <sabre@nondot.org> | 2005-03-22 01:42:10 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-03-22 01:42:10 +0000 |
commit | 54fdcb24808bc7c66109efd9e4e3206ee4af3967 (patch) | |
tree | 9769220f89a67b40d3d219bdb295983ecdd2dc0d /include | |
parent | a2197139b5894a4225452b9ffc8417c5d05a157b (diff) | |
download | llvm-54fdcb24808bc7c66109efd9e4e3206ee4af3967.tar.gz llvm-54fdcb24808bc7c66109efd9e4e3206ee4af3967.tar.bz2 llvm-54fdcb24808bc7c66109efd9e4e3206ee4af3967.tar.xz |
add a method
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20761 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Analysis/DataStructure/DSGraph.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/llvm/Analysis/DataStructure/DSGraph.h b/include/llvm/Analysis/DataStructure/DSGraph.h index 8eef33ac63..eeb261fae8 100644 --- a/include/llvm/Analysis/DataStructure/DSGraph.h +++ b/include/llvm/Analysis/DataStructure/DSGraph.h @@ -91,6 +91,12 @@ public: return I; } + /// getRawEntryRef - This method can be used by clients that are aware of the + /// global value equivalence class in effect. + DSNodeHandle &getRawEntryRef(Value *V) { + return ValueMap[V]; + } + unsigned count(Value *V) const { return ValueMap.find(V) != ValueMap.end(); } void erase(Value *V) { erase(ValueMap.find(V)); } |