From ed455c8fa25dd37a13b33f0afa66be03ac49b5bb Mon Sep 17 00:00:00 2001 From: Gordon Henriksen Date: Sun, 9 Dec 2007 22:46:10 +0000 Subject: 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 --- include/llvm/GlobalVariable.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/llvm/GlobalVariable.h') 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. -- cgit v1.2.3