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:
Chris Lattner 2005-01-29 18:41:25 +00:00
parent 3cf8e6857e
commit 9d5d7598db
2 changed files with 4 additions and 5 deletions

View File

@ -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;

View File

@ -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;