From: Anand Shukla Date: Tue, 9 Jul 2002 19:18:56 +0000 (+0000) Subject: changed mem_fun to std::mem_fun X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=d58290ed3b0bba30954a16db47a932d2e9716083;p=oota-llvm.git changed mem_fun to std::mem_fun git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@2847 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp b/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp index 4df8ba4aabf..ef4156147cb 100644 --- a/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp +++ b/lib/CodeGen/RegAlloc/PhyRegAlloc.cpp @@ -682,8 +682,8 @@ void PhyRegAlloc::insertCode4SpilledLR(const LiveRange *LR, cerr << "\nFor Inst " << *MInst; cerr << " - SPILLED LR: "; printSet(*LR); cerr << "\n - Added Instructions:"; - for_each(MIBef.begin(), MIBef.end(), mem_fun(&MachineInstr::dump)); - for_each(MIAft.begin(), MIAft.end(), mem_fun(&MachineInstr::dump)); + for_each(MIBef.begin(), MIBef.end(), std::mem_fun(&MachineInstr::dump)); + for_each(MIAft.begin(), MIAft.end(), std::mem_fun(&MachineInstr::dump)); } } diff --git a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp index 4df8ba4aabf..ef4156147cb 100644 --- a/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp +++ b/lib/Target/SparcV9/RegAlloc/PhyRegAlloc.cpp @@ -682,8 +682,8 @@ void PhyRegAlloc::insertCode4SpilledLR(const LiveRange *LR, cerr << "\nFor Inst " << *MInst; cerr << " - SPILLED LR: "; printSet(*LR); cerr << "\n - Added Instructions:"; - for_each(MIBef.begin(), MIBef.end(), mem_fun(&MachineInstr::dump)); - for_each(MIAft.begin(), MIAft.end(), mem_fun(&MachineInstr::dump)); + for_each(MIBef.begin(), MIBef.end(), std::mem_fun(&MachineInstr::dump)); + for_each(MIAft.begin(), MIAft.end(), std::mem_fun(&MachineInstr::dump)); } }