diff options
author | Chris Lattner <sabre@nondot.org> | 2001-11-04 08:08:34 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2001-11-04 08:08:34 +0000 |
commit | 8e7f4091695aad705f84398ede1fccc3796b1fad (patch) | |
tree | 4eb5828e7a59ff372babf99cd90f9c972950fbc9 /lib/Transforms/LevelRaise.cpp | |
parent | b96939519b4e2852e8578cc03cddb8f94b23f819 (diff) |
Minor method rename
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@1119 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/LevelRaise.cpp')
-rw-r--r-- | lib/Transforms/LevelRaise.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/Transforms/LevelRaise.cpp b/lib/Transforms/LevelRaise.cpp index b5f7056892..ff932b6912 100644 --- a/lib/Transforms/LevelRaise.cpp +++ b/lib/Transforms/LevelRaise.cpp @@ -250,7 +250,7 @@ static bool ExpressionConvertableToType(Value *V, const Type *Ty) { // index array. If there are, check to see if removing them causes us to // get to the right type... // - vector<ConstPoolVal*> Indices = GEP->getIndexVec(); + vector<ConstPoolVal*> Indices = GEP->getIndices(); const Type *BaseType = GEP->getPtrOperand()->getType(); while (Indices.size() && @@ -333,7 +333,7 @@ static Value *ConvertExpressionToType(Value *V, const Type *Ty) { // index array. If there are, check to see if removing them causes us to // get to the right type... // - vector<ConstPoolVal*> Indices = GEP->getIndexVec(); + vector<ConstPoolVal*> Indices = GEP->getIndices(); const Type *BaseType = GEP->getPtrOperand()->getType(); const Type *PVTy = cast<PointerType>(Ty)->getValueType(); Res = 0; @@ -709,7 +709,7 @@ static bool PeepholeOptimize(BasicBlock *BB, BasicBlock::iterator &BI) { PRINT_PEEPHOLE2("gep-store:in", GEP, SI); ReplaceInstWithInst(BB->getInstList(), BI, SI = new StoreInst(Val, GEP->getPtrOperand(), - GEP->getIndexVec())); + GEP->getIndices())); PRINT_PEEPHOLE1("gep-store:out", SI); return true; } @@ -757,7 +757,7 @@ static bool PeepholeOptimize(BasicBlock *BB, BasicBlock::iterator &BI) { PRINT_PEEPHOLE2("gep-load:in", GEP, LI); ReplaceInstWithInst(BB->getInstList(), BI, LI = new LoadInst(GEP->getPtrOperand(), - GEP->getIndexVec())); + GEP->getIndices())); PRINT_PEEPHOLE1("gep-load:out", LI); return true; } |