diff options
author | Chris Lattner <sabre@nondot.org> | 2001-11-26 19:14:56 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-11-26 19:14:56 +0000 |
commit | 7a787227d8a77394c00ceaa1a576bb3c2b1d810c (patch) | |
tree | 41e9e9a559de1ad9fb6d4ecad341d1265164de61 /llvm/lib/VMCore/Function.cpp | |
parent | 302014f2e7845f4df9f041f45e868a315f6bbc8a (diff) | |
download | bcm5719-llvm-7a787227d8a77394c00ceaa1a576bb3c2b1d810c.tar.gz bcm5719-llvm-7a787227d8a77394c00ceaa1a576bb3c2b1d810c.zip |
Implement internal
llvm-svn: 1385
Diffstat (limited to 'llvm/lib/VMCore/Function.cpp')
-rw-r--r-- | llvm/lib/VMCore/Function.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/VMCore/Function.cpp b/llvm/lib/VMCore/Function.cpp index d3c18588cda..b997f11fabb 100644 --- a/llvm/lib/VMCore/Function.cpp +++ b/llvm/lib/VMCore/Function.cpp @@ -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)); } |