mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-17 20:23:59 +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:
@ -211,7 +211,7 @@ MachineBasicBlock::instr_iterator
|
||||
llvm::finalizeBundle(MachineBasicBlock &MBB,
|
||||
MachineBasicBlock::instr_iterator FirstMI) {
|
||||
MachineBasicBlock::instr_iterator E = MBB.instr_end();
|
||||
MachineBasicBlock::instr_iterator LastMI = llvm::next(FirstMI);
|
||||
MachineBasicBlock::instr_iterator LastMI = std::next(FirstMI);
|
||||
while (LastMI != E && LastMI->isInsideBundle())
|
||||
++LastMI;
|
||||
finalizeBundle(MBB, FirstMI, LastMI);
|
||||
@ -235,7 +235,7 @@ bool llvm::finalizeBundles(MachineFunction &MF) {
|
||||
if (!MII->isInsideBundle())
|
||||
++MII;
|
||||
else {
|
||||
MII = finalizeBundle(MBB, llvm::prior(MII));
|
||||
MII = finalizeBundle(MBB, std::prev(MII));
|
||||
Changed = true;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user