diff options
author | Chris Lattner <sabre@nondot.org> | 2002-08-18 00:39:59 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2002-08-18 00:39:59 +0000 |
commit | e0fbb497ee44f86ec108e4ff8787a848c6ee8655 (patch) | |
tree | 7ce7b1156c9a8032c2542a2aa536bedd799fd4b9 /include/llvm/Module.h | |
parent | 915ce8a02ebefd02b3c34a43267aae5c608ee170 (diff) |
- ConstantPointerRefs are now automatically removed from the module table
when they are destroyed, which makes Constant::destroyConstant an actually
useful external interface. Expose these methods publicly.
- Implement destroyConstant on ConstPointerNull so that destroyConstant can
be used on any derived type constant safely.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@3378 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Module.h')
-rw-r--r-- | include/llvm/Module.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Module.h b/include/llvm/Module.h index a9e3aba1d5..3496e71616 100644 --- a/include/llvm/Module.h +++ b/include/llvm/Module.h @@ -63,6 +63,7 @@ private: friend class ConstantPointerRef; void mutateConstantPointerRef(GlobalValue *OldGV, GlobalValue *NewGV); ConstantPointerRef *getConstantPointerRef(GlobalValue *GV); + void destroyConstantPointerRef(ConstantPointerRef *CPR); public: Module(); |