From: Chris Lattner Date: Mon, 26 Nov 2001 16:56:19 +0000 (+0000) Subject: The old getIndices has been deprecated, because it no longer works. It now X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=69a86e4e23de6811c7f63c22266da8ad8d365575;p=oota-llvm.git 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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1338 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp b/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp index 853fe0f3108..d43e688dd76 100644 --- a/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp +++ b/lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp @@ -118,7 +118,7 @@ FoldGetElemChain(const InstructionNode* getElemInstrNode, // Initialize return values from the incoming instruction 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 InstrTreeNode* ptrChild = getElemInstrNode->leftChild(); @@ -128,7 +128,7 @@ FoldGetElemChain(const InstructionNode* getElemInstrNode, // Child is a GetElemPtr instruction getElemInst = (MemAccessInst*) ((InstructionNode*) ptrChild)->getInstruction(); - const vector& idxVec = getElemInst->getIndices(); + const vector& idxVec = getElemInst->getIndicesBROKEN(); // Get the pointer value out of ptrChild and *prepend* its index vector ptrVal = getElemInst->getPointerOperand(); diff --git a/lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp b/lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp index 853fe0f3108..d43e688dd76 100644 --- a/lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp +++ b/lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp @@ -118,7 +118,7 @@ FoldGetElemChain(const InstructionNode* getElemInstrNode, // Initialize return values from the incoming instruction 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 InstrTreeNode* ptrChild = getElemInstrNode->leftChild(); @@ -128,7 +128,7 @@ FoldGetElemChain(const InstructionNode* getElemInstrNode, // Child is a GetElemPtr instruction getElemInst = (MemAccessInst*) ((InstructionNode*) ptrChild)->getInstruction(); - const vector& idxVec = getElemInst->getIndices(); + const vector& idxVec = getElemInst->getIndicesBROKEN(); // Get the pointer value out of ptrChild and *prepend* its index vector ptrVal = getElemInst->getPointerOperand(); diff --git a/lib/Target/SparcV9/SparcV9InstrSelection.cpp b/lib/Target/SparcV9/SparcV9InstrSelection.cpp index d1b7149960d..c1b8aa38c87 100644 --- a/lib/Target/SparcV9/SparcV9InstrSelection.cpp +++ b/lib/Target/SparcV9/SparcV9InstrSelection.cpp @@ -744,7 +744,8 @@ SetOperandsForMemInstr(MachineInstr* minstr, // The major work here is to extract these for all 3 instruction types // and then call the common function SetMemOperands_Internal(). // - const vector* idxVec = &memInst->getIndices(); + const vector OLDIDXVEC = memInst->getIndicesBROKEN(); + const vector* idxVec = &OLDIDXVEC; //FIXME vector* newIdxVec = NULL; Value* ptrVal; Value* arrayOffsetVal = NULL;