diff options
author | Gordon Henriksen <gordonhenriksen@mac.com> | 2007-12-09 22:46:10 +0000 |
---|---|---|
committer | Gordon Henriksen <gordonhenriksen@mac.com> | 2007-12-09 22:46:10 +0000 |
commit | ed455c8fa25dd37a13b33f0afa66be03ac49b5bb (patch) | |
tree | 7bfa961474e22f830710a49d4ed015fe374967b7 /include/llvm/GlobalVariable.h | |
parent | 46a6e79e602b23ea3478027d5bdd1f904aea7924 (diff) | |
download | external_llvm-ed455c8fa25dd37a13b33f0afa66be03ac49b5bb.zip external_llvm-ed455c8fa25dd37a13b33f0afa66be03ac49b5bb.tar.gz external_llvm-ed455c8fa25dd37a13b33f0afa66be03ac49b5bb.tar.bz2 |
Devirtualizing Value destructor (PR889). Patch by Pawel Kunio!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@44747 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/GlobalVariable.h')
-rw-r--r-- | include/llvm/GlobalVariable.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/GlobalVariable.h b/include/llvm/GlobalVariable.h index 00d4acb..882dec6 100644 --- a/include/llvm/GlobalVariable.h +++ b/include/llvm/GlobalVariable.h @@ -45,6 +45,11 @@ class GlobalVariable : public GlobalValue { bool isThreadLocalSymbol : 1; // Is this symbol "Thread Local"? Use Initializer; +protected: + static void destroyThis(GlobalVariable*v) { + GlobalValue::destroyThis(v); + } + friend class Value; public: /// GlobalVariable ctor - If a parent module is specified, the global is /// automatically inserted into the end of the specified modules global list. |