mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-15 16:09:57 +00:00
adjust to ilist changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19924 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
3cf8e6857e
commit
9d5d7598db
@ -46,7 +46,7 @@ void ilist_traits<MachineBasicBlock>::removeNodeFromList(MachineBasicBlock* N) {
|
||||
}
|
||||
|
||||
|
||||
MachineInstr* ilist_traits<MachineInstr>::createNode() {
|
||||
MachineInstr* ilist_traits<MachineInstr>::createSentinal() {
|
||||
MachineInstr* dummy = new MachineInstr(0, 0);
|
||||
LeakDetector::removeGarbageObject(dummy);
|
||||
return dummy;
|
||||
|
@ -89,8 +89,8 @@ FunctionPass *llvm::createMachineCodeDeleter() {
|
||||
//===---------------------------------------------------------------------===//
|
||||
// MachineFunction implementation
|
||||
//===---------------------------------------------------------------------===//
|
||||
MachineBasicBlock* ilist_traits<MachineBasicBlock>::createNode()
|
||||
{
|
||||
|
||||
MachineBasicBlock* ilist_traits<MachineBasicBlock>::createSentinal() {
|
||||
MachineBasicBlock* dummy = new MachineBasicBlock();
|
||||
LeakDetector::removeGarbageObject(dummy);
|
||||
return dummy;
|
||||
@ -99,8 +99,7 @@ MachineBasicBlock* ilist_traits<MachineBasicBlock>::createNode()
|
||||
void ilist_traits<MachineBasicBlock>::transferNodesFromList(
|
||||
iplist<MachineBasicBlock, ilist_traits<MachineBasicBlock> >& toList,
|
||||
ilist_iterator<MachineBasicBlock> first,
|
||||
ilist_iterator<MachineBasicBlock> last)
|
||||
{
|
||||
ilist_iterator<MachineBasicBlock> last) {
|
||||
if (Parent != toList.Parent)
|
||||
for (; first != last; ++first)
|
||||
first->Parent = toList.Parent;
|
||||
|
Loading…
Reference in New Issue
Block a user