aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Module.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-08-18 00:39:59 +0000
committerChris Lattner <sabre@nondot.org>2002-08-18 00:39:59 +0000
commite0fbb497ee44f86ec108e4ff8787a848c6ee8655 (patch)
tree7ce7b1156c9a8032c2542a2aa536bedd799fd4b9 /include/llvm/Module.h
parent915ce8a02ebefd02b3c34a43267aae5c608ee170 (diff)
downloadexternal_llvm-e0fbb497ee44f86ec108e4ff8787a848c6ee8655.zip
external_llvm-e0fbb497ee44f86ec108e4ff8787a848c6ee8655.tar.gz
external_llvm-e0fbb497ee44f86ec108e4ff8787a848c6ee8655.tar.bz2
- 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.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/llvm/Module.h b/include/llvm/Module.h
index a9e3aba..3496e71 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();