From d59b0af98b8da068f345299a3fc68e151b46fbd7 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Thu, 18 Apr 2002 14:44:53 +0000 Subject: [PATCH] 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 --- lib/VMCore/iMemory.cpp | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/lib/VMCore/iMemory.cpp b/lib/VMCore/iMemory.cpp index cf80909d8b4..79c697edc8f 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 &Idx, - const std::string &Name = "") - : MemAccessInst(Type::VoidTy, Store, Name) { +StoreInst::StoreInst(Value *Val, Value *Ptr, const std::vector &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 &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 &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(); -}