summaryrefslogtreecommitdiffstats
path: root/llvm/lib/VMCore/iMemory.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2001-12-04 00:03:30 +0000
committerChris Lattner <sabre@nondot.org>2001-12-04 00:03:30 +0000
commit2413b160ecebcde87c4dbfc627f000d0b317d34a (patch)
tree7c034b4efd8ec6bb8256d427fa2900cdf701e75f /llvm/lib/VMCore/iMemory.cpp
parent3462ae3ad7944394d0e9b82be222a43a26ca289a (diff)
downloadbcm5719-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/VMCore/iMemory.cpp')
-rw-r--r--llvm/lib/VMCore/iMemory.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/VMCore/iMemory.cpp b/llvm/lib/VMCore/iMemory.cpp
index a0a7b0f9793..c61961b58e3 100644
--- a/llvm/lib/VMCore/iMemory.cpp
+++ b/llvm/lib/VMCore/iMemory.cpp
@@ -22,7 +22,7 @@ const Type* MemAccessInst::getIndexedType(const Type *Ptr,
if (!Ptr->isPointerType()) return 0; // Type isn't a pointer type!
// Get the type pointed to...
- Ptr = cast<PointerType>(Ptr)->getValueType();
+ Ptr = cast<PointerType>(Ptr)->getElementType();
unsigned CurIDX = 0;
while (const CompositeType *ST = dyn_cast<CompositeType>(Ptr)) {
@@ -71,7 +71,7 @@ LoadInst::LoadInst(Value *Ptr, const vector<Value*> &Idx,
}
LoadInst::LoadInst(Value *Ptr, const string &Name = "")
- : MemAccessInst(cast<PointerType>(Ptr->getType())->getValueType(),
+ : MemAccessInst(cast<PointerType>(Ptr->getType())->getElementType(),
Load, Name) {
Operands.reserve(1);
Operands.push_back(Use(Ptr, this));
@@ -121,5 +121,5 @@ GetElementPtrInst::GetElementPtrInst(Value *Ptr, const vector<Value*> &Idx,
}
bool GetElementPtrInst::isStructSelector() const {
- return ((PointerType*)Operands[0]->getType())->getValueType()->isStructType();
+ return ((PointerType*)Operands[0]->getType())->getElementType()->isStructType();
}
OpenPOWER on IntegriCloud