diff options
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/CodeGen/MachineBasicBlock.cpp | 2 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 7 | 
2 files changed, 4 insertions, 5 deletions
diff --git a/llvm/lib/CodeGen/MachineBasicBlock.cpp b/llvm/lib/CodeGen/MachineBasicBlock.cpp index 6b6fcae1252..a69d1580a35 100644 --- a/llvm/lib/CodeGen/MachineBasicBlock.cpp +++ b/llvm/lib/CodeGen/MachineBasicBlock.cpp @@ -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; diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index f19ea0918f0..903346d9146 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;  | 

