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;