1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +01:00

Devirtualize User::dropAllReferences

llvm-svn: 151
This commit is contained in:
Chris Lattner 2001-07-07 19:00:36 +00:00
parent 9044bfe6a6
commit cd5bbb0001

View File

@ -48,15 +48,15 @@ public:
inline op_iterator op_end() { return Operands.end(); }
inline op_const_iterator op_end() const { return Operands.end(); }
// dropAllReferences() - This virtual function should be overridden to "let
// go" of all references that this user is maintaining. This allows one to
// dropAllReferences() - This function is in charge of "letting go" of all
// objects that this User refers to. This allows one to
// 'delete' a whole class at a time, even though there may be circular
// references... first all references are dropped, and all use counts go to
// zero. Then everything is delete'd for real. Note that no operations are
// valid on an object that has "dropped all references", except operator
// delete.
//
virtual void dropAllReferences() {
inline void dropAllReferences() {
Operands.clear();
}