aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--include/llvm/iMemory.h3
-rw-r--r--lib/VMCore/iMemory.cpp16
2 files changed, 0 insertions, 19 deletions
diff --git a/include/llvm/iMemory.h b/include/llvm/iMemory.h
index 2f2ebd8..bf384a6 100644
--- a/include/llvm/iMemory.h
+++ b/include/llvm/iMemory.h
@@ -167,9 +167,6 @@ public:
const vector<Value*> &Indices,
bool AllowStructLeaf = false);
- const vector<Constant*> getIndicesBROKEN() const;
-
-
inline op_iterator idx_begin() {
return op_begin()+getFirstIndexOperandNumber();
}
diff --git a/lib/VMCore/iMemory.cpp b/lib/VMCore/iMemory.cpp
index 6b7aff9..c845fd9 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
//===----------------------------------------------------------------------===//