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 | e6074aa08bb9f6aff0255c6d8485a94fdb6cd6e4 (patch) | |
tree | bf2c588495f3ef4caf21b60d6d9931f29c6c0d30 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | e5c7b9a215cb1d847e6a175bc34e81c070693046 (diff) | |
download | llvm-e6074aa08bb9f6aff0255c6d8485a94fdb6cd6e4.zip llvm-e6074aa08bb9f6aff0255c6d8485a94fdb6cd6e4.tar.gz llvm-e6074aa08bb9f6aff0255c6d8485a94fdb6cd6e4.tar.bz2 |
adjust to ilist changes.
llvm-svn: 19924
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index f19ea09..903346d 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/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; |