From 6a2dc5c3814916c57f23cbd0ca5375365a6f96c1 Mon Sep 17 00:00:00 2001 From: Ahmed Charles Date: Sun, 9 Mar 2014 09:24:40 +0000 Subject: [C++11] Replace OwningPtr with std::unique_ptr. This removes all references to OwningPtr, which should be fairly undisruptive to out-of-tree projects since they are unlikely to use clang-tools-extra as a library instead of a set of tools. llvm-svn: 203382 --- clang-tools-extra/modularize/ModuleAssistant.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'clang-tools-extra/modularize/ModuleAssistant.cpp') diff --git a/clang-tools-extra/modularize/ModuleAssistant.cpp b/clang-tools-extra/modularize/ModuleAssistant.cpp index 5be7f320e95..384ac1b807c 100644 --- a/clang-tools-extra/modularize/ModuleAssistant.cpp +++ b/clang-tools-extra/modularize/ModuleAssistant.cpp @@ -30,7 +30,6 @@ //===---------------------------------------------------------------------===// #include "Modularize.h" -#include "llvm/ADT/OwningPtr.h" #include "llvm/ADT/SmallString.h" #include "llvm/Support/FileSystem.h" #include "llvm/Support/Path.h" @@ -281,7 +280,7 @@ bool createModuleMap(llvm::StringRef ModuleMapPath, DependencyMap &Dependencies, llvm::StringRef HeaderPrefix, llvm::StringRef RootModuleName) { // Load internal representation of modules. - llvm::OwningPtr RootModule(loadModuleDescriptions( + std::unique_ptr RootModule(loadModuleDescriptions( RootModuleName, HeaderFileNames, Dependencies, HeaderPrefix)); if (!RootModule.get()) return false; -- cgit v1.2.3