Replace OwningPtr<T> with std::unique_ptr<T>.
[oota-llvm.git] / utils / FileUpdate / FileUpdate.cpp
index 3064503478a45ba0403f20959794a830c5f94ac4..5ccf3f32a068681f0252f44ac19e8715146e3ac9 100644 (file)
@@ -13,7 +13,6 @@
 //
 //===----------------------------------------------------------------------===//
 
-#include "llvm/ADT/OwningPtr.h"
 #include "llvm/Support/CommandLine.h"
 #include "llvm/Support/MemoryBuffer.h"
 #include "llvm/Support/PrettyStackTrace.h"
@@ -44,7 +43,7 @@ int main(int argc, char **argv) {
   }
 
   // Get the input data.
-  OwningPtr<MemoryBuffer> In;
+  std::unique_ptr<MemoryBuffer> In;
   if (error_code ec = MemoryBuffer::getFileOrSTDIN(InputFilename, In)) {
     errs() << argv[0] << ": error: Unable to get input '"
            << InputFilename << "': " << ec.message() << '\n';
@@ -52,7 +51,7 @@ int main(int argc, char **argv) {
   }
 
   // Get the output data.
-  OwningPtr<MemoryBuffer> Out;
+  std::unique_ptr<MemoryBuffer> Out;
   MemoryBuffer::getFile(OutputFilename.c_str(), Out);
 
   // If the output exists and the contents match, we are done.