The old getIndices has been deprecated, because it no longer works. It now
authorChris Lattner <sabre@nondot.org>
Mon, 26 Nov 2001 16:56:19 +0000 (16:56 +0000)
committerChris Lattner <sabre@nondot.org>
Mon, 26 Nov 2001 16:56:19 +0000 (16:56 +0000)
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

lib/CodeGen/InstrSelection/InstrSelectionSupport.cpp
lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp
lib/Target/SparcV9/SparcV9InstrSelection.cpp

index 853fe0f31081a8f0cffb7a1e28fdd60613934c31..d43e688dd762f7cdf9eabecf5326a9aade7a3335 100644 (file)
@@ -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<ConstPoolVal*>& idxVec = getElemInst->getIndices();
+      const vector<ConstPoolVal*>& idxVec = getElemInst->getIndicesBROKEN();
       
       // Get the pointer value out of ptrChild and *prepend* its index vector
       ptrVal = getElemInst->getPointerOperand();
index 853fe0f31081a8f0cffb7a1e28fdd60613934c31..d43e688dd762f7cdf9eabecf5326a9aade7a3335 100644 (file)
@@ -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<ConstPoolVal*>& idxVec = getElemInst->getIndices();
+      const vector<ConstPoolVal*>& idxVec = getElemInst->getIndicesBROKEN();
       
       // Get the pointer value out of ptrChild and *prepend* its index vector
       ptrVal = getElemInst->getPointerOperand();
index d1b7149960dfd078331c266c210d59a51ec893d7..c1b8aa38c87969ac62c7a66e987ec889933da531 100644 (file)
@@ -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<ConstPoolVal*>* idxVec = &memInst->getIndices();
+  const vector<ConstPoolVal*> OLDIDXVEC = memInst->getIndicesBROKEN();
+  const vector<ConstPoolVal*>* idxVec = &OLDIDXVEC;  //FIXME
   vector<ConstPoolVal*>* newIdxVec = NULL;
   Value* ptrVal;
   Value* arrayOffsetVal = NULL;