diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-07-07 19:00:36 +0000 |
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-07-07 19:00:36 +0000 |
| commit | 48d80e18f983b8f97a715b540b47883f60069e8d (patch) | |
| tree | 3f6806ce69d10561438d91f81b026786e300e99a | |
| parent | a999afa1827965686204742aced4e62644d8ed31 (diff) | |
| download | bcm5719-llvm-48d80e18f983b8f97a715b540b47883f60069e8d.tar.gz bcm5719-llvm-48d80e18f983b8f97a715b540b47883f60069e8d.zip | |
Devirtualize User::dropAllReferences
llvm-svn: 151
| -rw-r--r-- | llvm/include/llvm/User.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/include/llvm/User.h b/llvm/include/llvm/User.h index 7f2e3e39d8d..0305c278164 100644 --- a/llvm/include/llvm/User.h +++ b/llvm/include/llvm/User.h @@ -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(); } |

