diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-12-15 00:37:12 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-12-15 00:37:12 +0000 |
commit | 34ca7efbe6945d46784f4124aedba40ce765b488 (patch) | |
tree | b421ce7877c5e04f642bd7dd5a151c3f3b670c8b /lib/VMCore/iMemory.cpp | |
parent | fa24897f9f7b533a451baad86ab7e473c8d534e9 (diff) |
Eliminate function getIndicesBROKEN().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1486 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/VMCore/iMemory.cpp')
-rw-r--r-- | lib/VMCore/iMemory.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/lib/VMCore/iMemory.cpp b/lib/VMCore/iMemory.cpp index 6b7aff9474..c845fd9936 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<Constant*> MemAccessInst::getIndicesBROKEN() const { - cerr << "FIXME: MemAccessInst::getIndices() should not be used!\n"; - - vector<Constant*> 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<Constant>(getOperand(i))); - - return RetVal; -} -#endif - //===----------------------------------------------------------------------===// // LoadInst Implementation //===----------------------------------------------------------------------===// |