summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/modularize/ModuleAssistant.cpp
diff options
context:
space:
mode:
authorAhmed Charles <ahmedcharles@gmail.com>2014-03-09 09:24:40 +0000
committerAhmed Charles <ahmedcharles@gmail.com>2014-03-09 09:24:40 +0000
commit6a2dc5c3814916c57f23cbd0ca5375365a6f96c1 (patch)
tree385a19977c33443e7a1571834a41c02a93b03534 /clang-tools-extra/modularize/ModuleAssistant.cpp
parentb5669026872bf648cad824fbe6820a7dfeebc9e5 (diff)
downloadbcm5719-llvm-6a2dc5c3814916c57f23cbd0ca5375365a6f96c1.tar.gz
bcm5719-llvm-6a2dc5c3814916c57f23cbd0ca5375365a6f96c1.zip
[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
Diffstat (limited to 'clang-tools-extra/modularize/ModuleAssistant.cpp')
-rw-r--r--clang-tools-extra/modularize/ModuleAssistant.cpp3
1 files changed, 1 insertions, 2 deletions
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<Module> RootModule(loadModuleDescriptions(
+ std::unique_ptr<Module> RootModule(loadModuleDescriptions(
RootModuleName, HeaderFileNames, Dependencies, HeaderPrefix));
if (!RootModule.get())
return false;
OpenPOWER on IntegriCloud