From 9d5d7598db72c00a0fb89dc77198e4f6ebc5294d Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sat, 29 Jan 2005 18:41:25 +0000 Subject: [PATCH] adjust to ilist changes. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19924 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/CodeGen/MachineBasicBlock.cpp | 2 +- lib/CodeGen/MachineFunction.cpp | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/CodeGen/MachineBasicBlock.cpp b/lib/CodeGen/MachineBasicBlock.cpp index 6b6fcae1252..a69d1580a35 100644 --- a/lib/CodeGen/MachineBasicBlock.cpp +++ b/lib/CodeGen/MachineBasicBlock.cpp @@ -46,7 +46,7 @@ void ilist_traits::removeNodeFromList(MachineBasicBlock* N) { } -MachineInstr* ilist_traits::createNode() { +MachineInstr* ilist_traits::createSentinal() { MachineInstr* dummy = new MachineInstr(0, 0); LeakDetector::removeGarbageObject(dummy); return dummy; diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp index f19ea0918f0..903346d9146 100644 --- a/lib/CodeGen/MachineFunction.cpp +++ b/lib/CodeGen/MachineFunction.cpp @@ -89,8 +89,8 @@ FunctionPass *llvm::createMachineCodeDeleter() { //===---------------------------------------------------------------------===// // MachineFunction implementation //===---------------------------------------------------------------------===// -MachineBasicBlock* ilist_traits::createNode() -{ + +MachineBasicBlock* ilist_traits::createSentinal() { MachineBasicBlock* dummy = new MachineBasicBlock(); LeakDetector::removeGarbageObject(dummy); return dummy; @@ -99,8 +99,7 @@ MachineBasicBlock* ilist_traits::createNode() void ilist_traits::transferNodesFromList( iplist >& toList, ilist_iterator first, - ilist_iterator last) -{ + ilist_iterator last) { if (Parent != toList.Parent) for (; first != last; ++first) first->Parent = toList.Parent; -- 2.34.1