diff options
author | Benjamin Kramer <benny.kra@googlemail.com> | 2013-04-12 12:13:51 +0000 |
---|---|---|
committer | Benjamin Kramer <benny.kra@googlemail.com> | 2013-04-12 12:13:51 +0000 |
commit | 3389e10d675f7723d3ab24deda60dfba568b42c0 (patch) | |
tree | f786da549e8adaeba9c1b760c31c0647e6fdf1ce /include/llvm/CodeGen/RegAllocPBQP.h | |
parent | 200241e4de11981523b3d14f3acab6129efed701 (diff) | |
download | external_llvm-3389e10d675f7723d3ab24deda60dfba568b42c0.zip external_llvm-3389e10d675f7723d3ab24deda60dfba568b42c0.tar.gz external_llvm-3389e10d675f7723d3ab24deda60dfba568b42c0.tar.bz2 |
Revert broken pieces of r179373.
You can't copy an OwningPtr, and move semantics aren't available in C++98.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179374 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/RegAllocPBQP.h')
-rw-r--r-- | include/llvm/CodeGen/RegAllocPBQP.h | 21 |
1 files changed, 11 insertions, 10 deletions
diff --git a/include/llvm/CodeGen/RegAllocPBQP.h b/include/llvm/CodeGen/RegAllocPBQP.h index dd7638e..b617c14 100644 --- a/include/llvm/CodeGen/RegAllocPBQP.h +++ b/include/llvm/CodeGen/RegAllocPBQP.h @@ -17,7 +17,6 @@ #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" @@ -124,10 +123,11 @@ namespace llvm { /// Build a PBQP instance to represent the register allocation problem for /// the given MachineFunction. - virtual OwningPtr<PBQPRAProblem> build(MachineFunction *mf, - const LiveIntervals *lis, - const MachineLoopInfo *loopInfo, - const RegSet &vregs); + virtual std::auto_ptr<PBQPRAProblem> build( + MachineFunction *mf, + const LiveIntervals *lis, + const MachineLoopInfo *loopInfo, + const RegSet &vregs); private: void addSpillCosts(PBQP::Vector &costVec, PBQP::PBQPNum spillCost); @@ -144,10 +144,11 @@ namespace llvm { /// Build a PBQP instance to represent the register allocation problem for /// the given MachineFunction. - virtual OwningPtr<PBQPRAProblem> build(MachineFunction *mf, - const LiveIntervals *lis, - const MachineLoopInfo *loopInfo, - const RegSet &vregs); + virtual std::auto_ptr<PBQPRAProblem> build( + MachineFunction *mf, + const LiveIntervals *lis, + const MachineLoopInfo *loopInfo, + const RegSet &vregs); private: @@ -160,7 +161,7 @@ namespace llvm { PBQP::PBQPNum benefit); }; - FunctionPass* createPBQPRegisterAllocator(OwningPtr<PBQPBuilder> builder, + FunctionPass* createPBQPRegisterAllocator(std::auto_ptr<PBQPBuilder> builder, char *customPassID=0); } |