diff options
Diffstat (limited to 'include/llvm/Analysis/DataStructure/DSGraph.h')
-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)); } |