[llvm-commits] CVS: llvm/lib/CodeGen/MachineFunction.cpp MachineBasicBlock.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sat Jan 29 10:41:37 PST 2005
Changes in directory llvm/lib/CodeGen:
MachineFunction.cpp updated: 1.75 -> 1.76
MachineBasicBlock.cpp updated: 1.21 -> 1.22
---
Log message:
adjust to ilist changes.
---
Diffs of the changes: (+4 -5)
MachineBasicBlock.cpp | 2 +-
MachineFunction.cpp | 7 +++----
2 files changed, 4 insertions(+), 5 deletions(-)
Index: llvm/lib/CodeGen/MachineFunction.cpp
diff -u llvm/lib/CodeGen/MachineFunction.cpp:1.75 llvm/lib/CodeGen/MachineFunction.cpp:1.76
--- llvm/lib/CodeGen/MachineFunction.cpp:1.75 Sun Jan 23 16:13:58 2005
+++ llvm/lib/CodeGen/MachineFunction.cpp Sat Jan 29 12:41:24 2005
@@ -89,8 +89,8 @@
//===---------------------------------------------------------------------===//
// 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 @@
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;
Index: llvm/lib/CodeGen/MachineBasicBlock.cpp
diff -u llvm/lib/CodeGen/MachineBasicBlock.cpp:1.21 llvm/lib/CodeGen/MachineBasicBlock.cpp:1.22
--- llvm/lib/CodeGen/MachineBasicBlock.cpp:1.21 Tue Oct 26 10:43:42 2004
+++ llvm/lib/CodeGen/MachineBasicBlock.cpp Sat Jan 29 12:41:25 2005
@@ -46,7 +46,7 @@
}
-MachineInstr* ilist_traits<MachineInstr>::createNode() {
+MachineInstr* ilist_traits<MachineInstr>::createSentinal() {
MachineInstr* dummy = new MachineInstr(0, 0);
LeakDetector::removeGarbageObject(dummy);
return dummy;
More information about the llvm-commits
mailing list