mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-01 00:33:09 +00:00
Eliminate function getIndicesBROKEN().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1486 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
fa24897f9f
commit
34ca7efbe6
@ -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();
|
||||
}
|
||||
|
@ -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
|
||||
//===----------------------------------------------------------------------===//
|
||||
|
Loading…
Reference in New Issue
Block a user