diff options
author | Andy Gibbs <andyg1001@hotmail.co.uk> | 2013-04-12 10:56:28 +0000 |
---|---|---|
committer | Andy Gibbs <andyg1001@hotmail.co.uk> | 2013-04-12 10:56:28 +0000 |
commit | 95777550a977f970c0a9b92a5428c988f2f7db36 (patch) | |
tree | 4758ee8daa4394aabaa4d7af932dd3fc0cce9a85 /llvm/include | |
parent | 92a31305099285290f11bed8b444d121c3fbfee3 (diff) | |
download | bcm5719-llvm-95777550a977f970c0a9b92a5428c988f2f7db36.tar.gz bcm5719-llvm-95777550a977f970c0a9b92a5428c988f2f7db36.zip |
Replace uses of the deprecated std::auto_ptr with OwningPtr.
llvm-svn: 179373
Diffstat (limited to 'llvm/include')
-rw-r--r-- | llvm/include/llvm/CodeGen/RegAllocPBQP.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/llvm/include/llvm/CodeGen/RegAllocPBQP.h b/llvm/include/llvm/CodeGen/RegAllocPBQP.h index b617c145585..dd7638e762c 100644 --- a/llvm/include/llvm/CodeGen/RegAllocPBQP.h +++ b/llvm/include/llvm/CodeGen/RegAllocPBQP.h @@ -17,6 +17,7 @@ #define LLVM_CODEGEN_REGALLOCPBQP_H #include "llvm/ADT/DenseMap.h" +#include "llvm/ADT/OwningPtr.h" #include "llvm/CodeGen/MachineFunctionPass.h" #include "llvm/CodeGen/PBQP/Graph.h" #include "llvm/CodeGen/PBQP/Solution.h" @@ -123,11 +124,10 @@ namespace llvm { /// Build a PBQP instance to represent the register allocation problem for /// the given MachineFunction. - virtual std::auto_ptr<PBQPRAProblem> build( - MachineFunction *mf, - const LiveIntervals *lis, - const MachineLoopInfo *loopInfo, - const RegSet &vregs); + virtual OwningPtr<PBQPRAProblem> build(MachineFunction *mf, + const LiveIntervals *lis, + const MachineLoopInfo *loopInfo, + const RegSet &vregs); private: void addSpillCosts(PBQP::Vector &costVec, PBQP::PBQPNum spillCost); @@ -144,11 +144,10 @@ namespace llvm { /// Build a PBQP instance to represent the register allocation problem for /// the given MachineFunction. - virtual std::auto_ptr<PBQPRAProblem> build( - MachineFunction *mf, - const LiveIntervals *lis, - const MachineLoopInfo *loopInfo, - const RegSet &vregs); + virtual OwningPtr<PBQPRAProblem> build(MachineFunction *mf, + const LiveIntervals *lis, + const MachineLoopInfo *loopInfo, + const RegSet &vregs); private: @@ -161,7 +160,7 @@ namespace llvm { PBQP::PBQPNum benefit); }; - FunctionPass* createPBQPRegisterAllocator(std::auto_ptr<PBQPBuilder> builder, + FunctionPass* createPBQPRegisterAllocator(OwningPtr<PBQPBuilder> builder, char *customPassID=0); } |