aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2002-04-18 14:44:53 +0000
committerChris Lattner <sabre@nondot.org>2002-04-18 14:44:53 +0000
commitd59b0af98b8da068f345299a3fc68e151b46fbd7 (patch)
treea72bfa5b3d14eedfa2deb36c47b16e5cc14743ab /lib
parent6428a27ee3d54660a315c864d98b821d0607dfca (diff)
downloadexternal_llvm-d59b0af98b8da068f345299a3fc68e151b46fbd7.zip
external_llvm-d59b0af98b8da068f345299a3fc68e151b46fbd7.tar.gz
external_llvm-d59b0af98b8da068f345299a3fc68e151b46fbd7.tar.bz2
Remove gep::isStructSelector
CTor's do not allow names anymore for StoreInst objects git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2285 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/VMCore/iMemory.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/lib/VMCore/iMemory.cpp b/lib/VMCore/iMemory.cpp
index cf80909..79c697e 100644
--- a/lib/VMCore/iMemory.cpp
+++ b/lib/VMCore/iMemory.cpp
@@ -93,9 +93,8 @@ LoadInst::LoadInst(Value *Ptr, const std::string &Name = "")
// StoreInst Implementation
//===----------------------------------------------------------------------===//
-StoreInst::StoreInst(Value *Val, Value *Ptr, const std::vector<Value*> &Idx,
- const std::string &Name = "")
- : MemAccessInst(Type::VoidTy, Store, Name) {
+StoreInst::StoreInst(Value *Val, Value *Ptr, const std::vector<Value*> &Idx)
+ : MemAccessInst(Type::VoidTy, Store, "") {
assert(getIndexedType(Ptr->getType(), Idx) && "Store operands invalid!");
Operands.reserve(2+Idx.size());
@@ -106,8 +105,8 @@ StoreInst::StoreInst(Value *Val, Value *Ptr, const std::vector<Value*> &Idx,
Operands.push_back(Use(Idx[i], this));
}
-StoreInst::StoreInst(Value *Val, Value *Ptr, const std::string &Name = "")
- : MemAccessInst(Type::VoidTy, Store, Name) {
+StoreInst::StoreInst(Value *Val, Value *Ptr)
+ : MemAccessInst(Type::VoidTy, Store, "") {
Operands.reserve(2);
Operands.push_back(Use(Val, this));
@@ -131,7 +130,3 @@ GetElementPtrInst::GetElementPtrInst(Value *Ptr, const std::vector<Value*> &Idx,
for (unsigned i = 0, E = Idx.size(); i != E; ++i)
Operands.push_back(Use(Idx[i], this));
}
-
-bool GetElementPtrInst::isStructSelector() const {
- return ((PointerType*)Operands[0]->getType())->getElementType()->isStructType();
-}