diff options
author | Chris Lattner <sabre@nondot.org> | 2001-10-03 19:28:15 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-10-03 19:28:15 +0000 |
commit | 25033250278efdbdbe8a7841be31b35d56483cd9 (patch) | |
tree | 08820cb940cc8da083025e4058aca948a1df3b83 /llvm/lib/VMCore/Function.cpp | |
parent | 883ad0b3529c6c9bf39f91810e10ab167619f244 (diff) | |
download | bcm5719-llvm-25033250278efdbdbe8a7841be31b35d56483cd9.tar.gz bcm5719-llvm-25033250278efdbdbe8a7841be31b35d56483cd9.zip |
Factor parentness out of Module & GlobalVariable into GlobalValue
Implement SymbolTable debug/dump utility
llvm-svn: 710
Diffstat (limited to 'llvm/lib/VMCore/Function.cpp')
-rw-r--r-- | llvm/lib/VMCore/Function.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/VMCore/Function.cpp b/llvm/lib/VMCore/Function.cpp index 372d0d28b91..6e30fe80a77 100644 --- a/llvm/lib/VMCore/Function.cpp +++ b/llvm/lib/VMCore/Function.cpp @@ -29,7 +29,6 @@ Method::Method(const MethodType *Ty, const string &name) : GlobalValue(PointerType::get(Ty), Value::MethodVal, name), SymTabValue(this), BasicBlocks(this), ArgumentList(this, this) { assert(::isa<MethodType>(Ty) && "Method signature must be of method type!"); - Parent = 0; } Method::~Method() { @@ -90,7 +89,7 @@ GlobalVariable::GlobalVariable(const Type *Ty, bool isConstant, ConstPoolVal *Initializer = 0, const string &Name = "") : GlobalValue(PointerType::get(Ty), Value::GlobalVariableVal, Name), - Parent(0), Constant(isConstant) { + Constant(isConstant) { if (Initializer) Operands.push_back(Use((Value*)Initializer, this)); assert(!isConstant || hasInitializer() && |