Added "clear" method to FoldingSetNodeID to allow a FoldingSetNodeID object

to be reused to compute multiple object profiles.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46226 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Ted Kremenek 2008-01-21 22:49:22 +00:00
parent 6518f5fcbf
commit c899b33b83

View File

@ -208,6 +208,10 @@ public:
void AddAPFloat(const APFloat& apf);
void AddString(const std::string &String);
/// clear - Clear the accumulated profile, allowing this FoldingSetNodeID
/// object to be used to compute a new profile.
inline void clear() { Bits.clear(); }
/// ComputeHash - Compute a strong hash value for this FoldingSetNodeID, used
/// to lookup the node in the FoldingSetImpl.
unsigned ComputeHash() const;