mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-20 10:24:12 +00:00
Change MachineBasicBlock's vector of MachineInstr pointers into an
ilist of MachineInstr objects. This allows constant time removal and insertion of MachineInstr instances from anywhere in each MachineBasicBlock. It also allows for constant time splicing of MachineInstrs into or out of MachineBasicBlocks. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@11340 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -60,9 +60,8 @@ MachineCodeForInstruction::~MachineCodeForInstruction() {
|
||||
for (unsigned i=0, N=tempVec.size(); i < N; i++)
|
||||
delete tempVec[i];
|
||||
|
||||
// Free the MachineInstr objects allocated, if any.
|
||||
for (unsigned i=0, N = size(); i < N; i++)
|
||||
delete (*this)[i];
|
||||
// do not free the MachineInstr objects allocated. they are managed
|
||||
// by the ilist in MachineBasicBlock
|
||||
|
||||
// Free the CallArgsDescriptor if it exists.
|
||||
delete callArgsDesc;
|
||||
|
Reference in New Issue
Block a user