Implement internal

llvm-svn: 1385
This commit is contained in:
Chris Lattner 2001-11-26 19:14:56 +00:00
parent 84d72f9596
commit 37ad91c9dc

View File

@ -25,8 +25,8 @@
template class ValueHolder<MethodArgument, Method, Method>;
template class ValueHolder<BasicBlock , Method, Method>;
Method::Method(const MethodType *Ty, const string &name)
: GlobalValue(PointerType::get(Ty), Value::MethodVal, name),
Method::Method(const MethodType *Ty, bool isInternal, const string &name)
: GlobalValue(PointerType::get(Ty), Value::MethodVal, isInternal, name),
SymTabValue(this), BasicBlocks(this), ArgumentList(this, this) {
assert(::isa<MethodType>(Ty) && "Method signature must be of method type!");
}
@ -85,10 +85,10 @@ void Method::dropAllReferences() {
// GlobalVariable Implementation
//===----------------------------------------------------------------------===//
GlobalVariable::GlobalVariable(const Type *Ty, bool isConstant,
ConstPoolVal *Initializer = 0,
GlobalVariable::GlobalVariable(const Type *Ty, bool isConstant, bool isIntern,
ConstPoolVal *Initializer = 0,
const string &Name = "")
: GlobalValue(PointerType::get(Ty), Value::GlobalVariableVal, Name),
: GlobalValue(PointerType::get(Ty), Value::GlobalVariableVal, isIntern, Name),
Constant(isConstant) {
if (Initializer) Operands.push_back(Use((Value*)Initializer, this));
}