From 6731f08dbca6cd2b490479a0be51d8a8a88ea466 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 26 Nov 2001 19:14:56 +0000 Subject: Implement internal git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1385 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/VMCore/Function.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/VMCore/Function.cpp b/lib/VMCore/Function.cpp index d3c1858..b997f11 100644 --- a/lib/VMCore/Function.cpp +++ b/lib/VMCore/Function.cpp @@ -25,8 +25,8 @@ template class ValueHolder; template class ValueHolder; -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(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)); } -- cgit v1.1