aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/GlobalVariable.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-10-03 19:28:15 +0000
committerChris Lattner <sabre@nondot.org>2001-10-03 19:28:15 +0000
commit4387370c1c6dd64ad01be0fc91836616d908e917 (patch)
treebb7a8e03db70bb1140ee30677acd097baa8c1a29 /include/llvm/GlobalVariable.h
parent6a57baa295bb3dbd389581df968536f594709bdb (diff)
downloadexternal_llvm-4387370c1c6dd64ad01be0fc91836616d908e917.zip
external_llvm-4387370c1c6dd64ad01be0fc91836616d908e917.tar.gz
external_llvm-4387370c1c6dd64ad01be0fc91836616d908e917.tar.bz2
Factor parentness out of Module & GlobalVariable into GlobalValue
Implement SymbolTable debug/dump utility git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@710 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/GlobalVariable.h')
-rw-r--r--include/llvm/GlobalVariable.h5
1 files changed, 0 insertions, 5 deletions
diff --git a/include/llvm/GlobalVariable.h b/include/llvm/GlobalVariable.h
index 6d6de14..2e29805 100644
--- a/include/llvm/GlobalVariable.h
+++ b/include/llvm/GlobalVariable.h
@@ -19,8 +19,6 @@ class ConstPoolVal;
class PointerType;
class GlobalVariable : public GlobalValue {
- Module *Parent; // The module that contains this method
-
friend class ValueHolder<GlobalVariable, Module, Module>;
void setParent(Module *parent) { Parent = parent; }
@@ -33,9 +31,6 @@ public:
// Specialize setName to handle symbol table majik...
virtual void setName(const string &name, SymbolTable *ST = 0);
- inline Module *getParent() { return Parent; }
- inline const Module *getParent() const { return Parent; }
-
// The initializer for the global variable/constant is held by Operands[0] if
// an initializer is specified.
//