From 7a1767520611d9ff6face702068de858e1cadf2c Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 4 Dec 2001 00:03:30 +0000 Subject: Renamed inst_const_iterator -> const_inst_iterator Renamed op_const_iterator -> const_op_iterator Renamed PointerType::getValueType() -> PointerType::getElementType() git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1408 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/ExecutionEngine/Interpreter/Execution.cpp | 6 +++--- lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'lib/ExecutionEngine') diff --git a/lib/ExecutionEngine/Interpreter/Execution.cpp b/lib/ExecutionEngine/Interpreter/Execution.cpp index 8378a20..5051bc7 100644 --- a/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/lib/ExecutionEngine/Interpreter/Execution.cpp @@ -237,7 +237,7 @@ Annotation *GlobalAddress::Create(AnnotationID AID, const Annotable *O, void *){ GlobalVariable *GV = cast(GVal); // First off, we must allocate space for the global variable to point at... - const Type *Ty = GV->getType()->getValueType(); // Type to be allocated + const Type *Ty = GV->getType()->getElementType(); // Type to be allocated unsigned NumElements = 1; if (isa(Ty) && cast(Ty)->isUnsized()) { @@ -728,7 +728,7 @@ void Interpreter::executeBrInst(BranchInst *I, ExecutionContext &SF) { //===----------------------------------------------------------------------===// void Interpreter::executeAllocInst(AllocationInst *I, ExecutionContext &SF) { - const Type *Ty = I->getType()->getValueType(); // Type to be allocated + const Type *Ty = I->getType()->getElementType(); // Type to be allocated unsigned NumElements = 1; if (I->getNumOperands()) { // Allocating a unsized array type? @@ -771,7 +771,7 @@ static PointerTy getElementOffset(MemAccessInst *I, ExecutionContext &SF) { PointerTy Total = 0; const Type *Ty = - cast(I->getPointerOperand()->getType())->getValueType(); + cast(I->getPointerOperand()->getType())->getElementType(); unsigned ArgOff = I->getFirstIndexOperandNumber(); while (ArgOff < I->getNumOperands()) { diff --git a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp index 04a73e8..4af07ad 100644 --- a/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp +++ b/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp @@ -130,8 +130,8 @@ GenericValue lle_X_printVal(MethodType *M, const vector &ArgVal) { // Specialize print([ubyte {x N} ] *) and print(sbyte *) if (PointerType *PTy = dyn_cast(M->getParamTypes()[0].get())) - if (PTy->getValueType() == Type::SByteTy || - isa(PTy->getValueType())) { + if (PTy->getElementType() == Type::SByteTy || + isa(PTy->getElementType())) { return lle_VP_printstr(M, ArgVal); } -- cgit v1.1