Replace OwningPtr<T> with std::unique_ptr<T>.
[oota-llvm.git] / lib / CodeGen / RegAllocGreedy.cpp
index b9cc2fec8dcd44e5a986ca10c170559a0a5607ce..1621faad9773000a93910153ab9e758230b98e89 100644 (file)
@@ -101,7 +101,7 @@ class RAGreedy : public MachineFunctionPass,
   LiveDebugVariables *DebugVars;
 
   // state
-  OwningPtr<Spiller> SpillerInstance;
+  std::unique_ptr<Spiller> SpillerInstance;
   PQueue Queue;
   unsigned NextCascade;
 
@@ -196,8 +196,8 @@ class RAGreedy : public MachineFunctionPass,
   };
 
   // splitting state.
-  OwningPtr<SplitAnalysis> SA;
-  OwningPtr<SplitEditor> SE;
+  std::unique_ptr<SplitAnalysis> SA;
+  std::unique_ptr<SplitEditor> SE;
 
   /// Cached per-block interference maps
   InterferenceCache IntfCache;