add a method

llvm-svn: 20761
This commit is contained in:
Chris Lattner 2005-03-22 01:42:10 +00:00
parent fcae88f280
commit d0949a00be
1 changed files with 6 additions and 0 deletions

View File

@ -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)); }