aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/VMCore/iMemory.cpp16
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
//===----------------------------------------------------------------------===//