diff options
author | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-12-15 00:36:32 +0000 |
---|---|---|
committer | Vikram S. Adve <vadve@cs.uiuc.edu> | 2001-12-15 00:36:32 +0000 |
commit | fa24897f9f7b533a451baad86ab7e473c8d534e9 (patch) | |
tree | 58165ed75cec58b8a9180fbb0e74aaab75c62f55 /lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp | |
parent | dd08e32deb39311824248be56be3bf3fbe64f39d (diff) | |
download | external_llvm-fa24897f9f7b533a451baad86ab7e473c8d534e9.zip external_llvm-fa24897f9f7b533a451baad86ab7e473c8d534e9.tar.gz external_llvm-fa24897f9f7b533a451baad86ab7e473c8d534e9.tar.bz2 |
Eliminate all uses of memInst->getIndicesBROKEN().
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1485 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp')
-rw-r--r-- | lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp b/lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp index 468bd8f..30d9c7e 100644 --- a/lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp +++ b/lib/Target/SparcV9/InstrSelection/InstrSelectionSupport.cpp @@ -111,14 +111,14 @@ GetConstantValueAsSignedInt(const Value *V, Value* FoldGetElemChain(const InstructionNode* getElemInstrNode, - vector<Constant*>& chainIdxVec) + vector<Value*>& chainIdxVec) { MemAccessInst* getElemInst = (MemAccessInst*) getElemInstrNode->getInstruction(); // Initialize return values from the incoming instruction Value* ptrVal = getElemInst->getPointerOperand(); - chainIdxVec = getElemInst->getIndicesBROKEN(); // copies index vector values + chainIdxVec = getElemInst->copyIndices(); // 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<Constant*>& idxVec = getElemInst->getIndicesBROKEN(); + const vector<Value*>& idxVec = getElemInst->copyIndices(); // Get the pointer value out of ptrChild and *prepend* its index vector ptrVal = getElemInst->getPointerOperand(); |