summaryrefslogtreecommitdiff
path: root/include/llvm/GlobalVariable.h
diff options
context:
space:
mode:
authorGordon Henriksen <gordonhenriksen@mac.com>2007-12-09 22:46:10 +0000
committerGordon Henriksen <gordonhenriksen@mac.com>2007-12-09 22:46:10 +0000
commited455c8fa25dd37a13b33f0afa66be03ac49b5bb (patch)
tree7bfa961474e22f830710a49d4ed015fe374967b7 /include/llvm/GlobalVariable.h
parent46a6e79e602b23ea3478027d5bdd1f904aea7924 (diff)
downloadllvm-ed455c8fa25dd37a13b33f0afa66be03ac49b5bb.tar.gz
llvm-ed455c8fa25dd37a13b33f0afa66be03ac49b5bb.tar.bz2
llvm-ed455c8fa25dd37a13b33f0afa66be03ac49b5bb.tar.xz
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.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/GlobalVariable.h b/include/llvm/GlobalVariable.h
index 00d4acb66d..882dec6885 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.