diff options
author | Chris Lattner <sabre@nondot.org> | 2005-01-29 18:41:25 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2005-01-29 18:41:25 +0000 |
commit | 9d5d7598db72c00a0fb89dc77198e4f6ebc5294d (patch) | |
tree | c5d54bc12b4a1b9c68f3d432b6945fc7378f4ab7 /lib/CodeGen/MachineFunction.cpp | |
parent | 3cf8e6857e1e5545048fc6fb6d834d50a7b7cf8e (diff) |
adjust to ilist changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19924 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | lib/CodeGen/MachineFunction.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/lib/CodeGen/MachineFunction.cpp b/lib/CodeGen/MachineFunction.cpp index f19ea0918f..903346d914 100644 --- a/lib/CodeGen/MachineFunction.cpp +++ b/lib/CodeGen/MachineFunction.cpp @@ -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; |