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 | 7a1767520611d9ff6face702068de858e1cadf2c (patch) | |
tree | 84849800c5f0e86af2757f911bc65010e016259e /include/llvm/iMemory.h | |
parent | e9bb2df410f7a22decad9a883f7139d5857c1520 (diff) |
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
Diffstat (limited to 'include/llvm/iMemory.h')
-rw-r--r-- | include/llvm/iMemory.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/include/llvm/iMemory.h b/include/llvm/iMemory.h index 8f356bf1f7..13843d2274 100644 --- a/include/llvm/iMemory.h +++ b/include/llvm/iMemory.h @@ -27,8 +27,8 @@ public: if (ArraySize) { // Make sure they didn't try to specify a size for !(unsized array) type - assert(getType()->getValueType()->isArrayType() && - cast<ArrayType>(getType()->getValueType())->isUnsized() && + assert(getType()->getElementType()->isArrayType() && + cast<ArrayType>(getType()->getElementType())->isUnsized() && "Trying to allocate something other than unsized array, with size!"); assert(ArraySize->getType() == Type::UIntTy && "Malloc/Allocation array size != UIntTy!"); @@ -37,8 +37,8 @@ public: Operands.push_back(Use(ArraySize, this)); } else { // Make sure that the pointer is not to an unsized array! - assert(!getType()->getValueType()->isArrayType() || - cast<const ArrayType>(getType()->getValueType())->isSized() && + assert(!getType()->getElementType()->isArrayType() || + cast<const ArrayType>(getType()->getElementType())->isSized() && "Trying to allocate unsized array without size!"); } } @@ -63,7 +63,7 @@ public: // getAllocatedType - Return the type that is being allocated by the // instruction. inline const Type *getAllocatedType() const { - return getType()->getValueType(); + return getType()->getElementType(); } virtual Instruction *clone() const = 0; @@ -183,11 +183,11 @@ public: inline op_iterator idx_begin() { return op_begin()+getFirstIndexOperandNumber(); } - inline op_const_iterator idx_begin() const { + inline const_op_iterator idx_begin() const { return op_begin()+getFirstIndexOperandNumber(); } inline op_iterator idx_end() { return op_end(); } - inline op_const_iterator idx_end() const { return op_end(); } + inline const_op_iterator idx_end() const { return op_end(); } vector<Value*> copyIndices() const { |