diff --git a/include/llvm/iMemory.h b/include/llvm/iMemory.h index 2f2ebd8b60f..bf384a61699 100644 --- a/include/llvm/iMemory.h +++ b/include/llvm/iMemory.h @@ -167,9 +167,6 @@ public: const vector &Indices, bool AllowStructLeaf = false); - const vector getIndicesBROKEN() const; - - inline op_iterator idx_begin() { return op_begin()+getFirstIndexOperandNumber(); } diff --git a/lib/VMCore/iMemory.cpp b/lib/VMCore/iMemory.cpp index 6b7aff9474b..c845fd99362 100644 --- a/lib/VMCore/iMemory.cpp +++ b/lib/VMCore/iMemory.cpp @@ -44,22 +44,6 @@ const Type* MemAccessInst::getIndexedType(const Type *Ptr, } -#if 1 -#include "llvm/ConstantVals.h" -const vector MemAccessInst::getIndicesBROKEN() const { - cerr << "FIXME: MemAccessInst::getIndices() should not be used!\n"; - - vector RetVal; - - // THIS CODE WILL FAIL IF A NON CONSTANT INDEX IS USED AS AN ARRAY INDEX - // THIS IS WHY YOU SHOULD NOT USE THIS FUNCTION ANY MORE!!! - for (unsigned i = getFirstIndexOperandNumber(); i < getNumOperands(); ++i) - RetVal.push_back(cast(getOperand(i))); - - return RetVal; -} -#endif - //===----------------------------------------------------------------------===// // LoadInst Implementation //===----------------------------------------------------------------------===//