diff options
| author | Chris Lattner <sabre@nondot.org> | 2001-12-04 00:03:30 +0000 | 
|---|---|---|
| committer | Chris Lattner <sabre@nondot.org> | 2001-12-04 00:03:30 +0000 | 
| commit | 2413b160ecebcde87c4dbfc627f000d0b317d34a (patch) | |
| tree | 7c034b4efd8ec6bb8256d427fa2900cdf701e75f /llvm/lib/ExecutionEngine | |
| parent | 3462ae3ad7944394d0e9b82be222a43a26ca289a (diff) | |
| download | bcm5719-llvm-2413b160ecebcde87c4dbfc627f000d0b317d34a.tar.gz bcm5719-llvm-2413b160ecebcde87c4dbfc627f000d0b317d34a.zip  | |
Renamed inst_const_iterator -> const_inst_iterator
Renamed op_const_iterator   -> const_op_iterator
Renamed PointerType::getValueType() -> PointerType::getElementType()
llvm-svn: 1408
Diffstat (limited to 'llvm/lib/ExecutionEngine')
| -rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/Execution.cpp | 6 | ||||
| -rw-r--r-- | llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp | 4 | 
2 files changed, 5 insertions, 5 deletions
diff --git a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp index 8378a2048d7..5051bc73c09 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp +++ b/llvm/lib/ExecutionEngine/Interpreter/Execution.cpp @@ -237,7 +237,7 @@ Annotation *GlobalAddress::Create(AnnotationID AID, const Annotable *O, void *){    GlobalVariable *GV = cast<GlobalVariable>(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<ArrayType>(Ty) && cast<ArrayType>(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<PointerType>(I->getPointerOperand()->getType())->getValueType(); +    cast<PointerType>(I->getPointerOperand()->getType())->getElementType();    unsigned ArgOff = I->getFirstIndexOperandNumber();    while (ArgOff < I->getNumOperands()) { diff --git a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp index 04a73e85561..4af07ad5f83 100644 --- a/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp +++ b/llvm/lib/ExecutionEngine/Interpreter/ExternalFunctions.cpp @@ -130,8 +130,8 @@ GenericValue lle_X_printVal(MethodType *M, const vector<GenericValue> &ArgVal) {    // Specialize print([ubyte {x N} ] *) and print(sbyte *)    if (PointerType *PTy = dyn_cast<PointerType>(M->getParamTypes()[0].get())) -    if (PTy->getValueType() == Type::SByteTy || -        isa<ArrayType>(PTy->getValueType())) { +    if (PTy->getElementType() == Type::SByteTy || +        isa<ArrayType>(PTy->getElementType())) {        return lle_VP_printstr(M, ArgVal);      }  | 

