Implement internal
authorChris Lattner <sabre@nondot.org>
Mon, 26 Nov 2001 19:14:56 +0000 (19:14 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 26 Nov 2001 19:14:56 +0000 (19:14 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1385 91177308-0d34-0410-b5e6-96231b3b80d8

lib/VMCore/Function.cpp

index d3c18588cda353d01a6be644fc1e8e430719b66a..b997f11fabb2c4b4208eb454fdad3c9e82a8de8c 100644 (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));
 }