aboutsummaryrefslogtreecommitdiffstats
path: root/lib/VMCore
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-11-26 19:14:56 +0000
committerChris Lattner <sabre@nondot.org>2001-11-26 19:14:56 +0000
commit6731f08dbca6cd2b490479a0be51d8a8a88ea466 (patch)
tree31824526e64eec978d6effa2ac9bc33ac743e192 /lib/VMCore
parent9e0057922848de80c7b2058655df670ad52b77f6 (diff)
downloadexternal_llvm-6731f08dbca6cd2b490479a0be51d8a8a88ea466.zip
external_llvm-6731f08dbca6cd2b490479a0be51d8a8a88ea466.tar.gz
external_llvm-6731f08dbca6cd2b490479a0be51d8a8a88ea466.tar.bz2
Implement internal
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1385 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore')
-rw-r--r--lib/VMCore/Function.cpp10
1 files 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<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));
}