The old getIndices has been deprecated, because it no longer works. It now
is named getIndicesBROKEN() and shall be removed when the codebase is updated to not call it llvm-svn: 1338
This commit is contained in:
parent
20faede952
commit
63b52693c8
|
@ -118,7 +118,7 @@ FoldGetElemChain(const InstructionNode* getElemInstrNode,
|
||||||
|
|
||||||
// Initialize return values from the incoming instruction
|
// Initialize return values from the incoming instruction
|
||||||
Value* ptrVal = getElemInst->getPointerOperand();
|
Value* ptrVal = getElemInst->getPointerOperand();
|
||||||
chainIdxVec = getElemInst->getIndices(); // copies index vector values
|
chainIdxVec = getElemInst->getIndicesBROKEN(); // copies index vector values
|
||||||
|
|
||||||
// Now chase the chain of getElementInstr instructions, if any
|
// Now chase the chain of getElementInstr instructions, if any
|
||||||
InstrTreeNode* ptrChild = getElemInstrNode->leftChild();
|
InstrTreeNode* ptrChild = getElemInstrNode->leftChild();
|
||||||
|
@ -128,7 +128,7 @@ FoldGetElemChain(const InstructionNode* getElemInstrNode,
|
||||||
// Child is a GetElemPtr instruction
|
// Child is a GetElemPtr instruction
|
||||||
getElemInst = (MemAccessInst*)
|
getElemInst = (MemAccessInst*)
|
||||||
((InstructionNode*) ptrChild)->getInstruction();
|
((InstructionNode*) ptrChild)->getInstruction();
|
||||||
const vector<ConstPoolVal*>& idxVec = getElemInst->getIndices();
|
const vector<ConstPoolVal*>& idxVec = getElemInst->getIndicesBROKEN();
|
||||||
|
|
||||||
// Get the pointer value out of ptrChild and *prepend* its index vector
|
// Get the pointer value out of ptrChild and *prepend* its index vector
|
||||||
ptrVal = getElemInst->getPointerOperand();
|
ptrVal = getElemInst->getPointerOperand();
|
||||||
|
|
|
@ -744,7 +744,8 @@ SetOperandsForMemInstr(MachineInstr* minstr,
|
||||||
// The major work here is to extract these for all 3 instruction types
|
// The major work here is to extract these for all 3 instruction types
|
||||||
// and then call the common function SetMemOperands_Internal().
|
// and then call the common function SetMemOperands_Internal().
|
||||||
//
|
//
|
||||||
const vector<ConstPoolVal*>* idxVec = &memInst->getIndices();
|
const vector<ConstPoolVal*> OLDIDXVEC = memInst->getIndicesBROKEN();
|
||||||
|
const vector<ConstPoolVal*>* idxVec = &OLDIDXVEC; //FIXME
|
||||||
vector<ConstPoolVal*>* newIdxVec = NULL;
|
vector<ConstPoolVal*>* newIdxVec = NULL;
|
||||||
Value* ptrVal;
|
Value* ptrVal;
|
||||||
Value* arrayOffsetVal = NULL;
|
Value* arrayOffsetVal = NULL;
|
||||||
|
|
Loading…
Reference in New Issue