mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2026-04-20 16:17:38 +00:00
Move use list management into MachineRegisterInfo.
Register MachineOperands are kept in linked lists accessible via MRI's reg_iterator interfaces. The linked list management was handled partly by MachineOperand methods, partly by MRI methods. Move all of the list management into MRI, delete MO::AddRegOperandToRegInfo() and MO::RemoveRegOperandFromRegInfo(). Be more explicit about handling the cases where an MRI pointer isn't available. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161632 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -109,7 +109,8 @@ void ilist_traits<MachineInstr>::removeNodeFromList(MachineInstr *N) {
|
||||
assert(N->getParent() != 0 && "machine instruction not in a basic block");
|
||||
|
||||
// Remove from the use/def lists.
|
||||
N->RemoveRegOperandsFromUseLists();
|
||||
if (MachineFunction *MF = N->getParent()->getParent())
|
||||
N->RemoveRegOperandsFromUseLists(MF->getRegInfo());
|
||||
|
||||
N->setParent(0);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user