mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-25 13:24:46 +00:00
[C++11] Replace llvm::next and llvm::prior with std::next and std::prev.
Remove the old functions. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202636 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -88,7 +88,7 @@ bool VectorLegalizer::Run() {
|
||||
// Before we start legalizing vector nodes, check if there are any vectors.
|
||||
bool HasVectors = false;
|
||||
for (SelectionDAG::allnodes_iterator I = DAG.allnodes_begin(),
|
||||
E = prior(DAG.allnodes_end()); I != llvm::next(E); ++I) {
|
||||
E = std::prev(DAG.allnodes_end()); I != std::next(E); ++I) {
|
||||
// Check if the values of the nodes contain vectors. We don't need to check
|
||||
// the operands because we are going to check their values at some point.
|
||||
for (SDNode::value_iterator J = I->value_begin(), E = I->value_end();
|
||||
@@ -112,7 +112,7 @@ bool VectorLegalizer::Run() {
|
||||
// node is only legalized after all of its operands are legalized.
|
||||
DAG.AssignTopologicalOrder();
|
||||
for (SelectionDAG::allnodes_iterator I = DAG.allnodes_begin(),
|
||||
E = prior(DAG.allnodes_end()); I != llvm::next(E); ++I)
|
||||
E = std::prev(DAG.allnodes_end()); I != std::next(E); ++I)
|
||||
LegalizeOp(SDValue(I, 0));
|
||||
|
||||
// Finally, it's possible the root changed. Get the new root.
|
||||
|
Reference in New Issue
Block a user