aboutsummaryrefslogtreecommitdiff
path: root/include/llvm/GlobalVariable.h
diff options
context:
space:
mode:
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.