diff options
author | Craig Topper <craig.topper@gmail.com> | 2014-09-10 04:53:53 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2014-09-10 04:53:53 +0000 |
commit | b8a705305562a8312e6d63ced9c8237d9fae21f3 (patch) | |
tree | 114deebfd15c4e4b9defd7aa4ae4b9b41bbe744e /clang/lib/Frontend/DependencyGraph.cpp | |
parent | 7ff15929606a9004dba0c9a18371aa5438b927d2 (diff) | |
download | llvm-b8a705305562a8312e6d63ced9c8237d9fae21f3.zip llvm-b8a705305562a8312e6d63ced9c8237d9fae21f3.tar.gz llvm-b8a705305562a8312e6d63ced9c8237d9fae21f3.tar.bz2 |
Unique_ptrify PPCallbacks ownership.
Unique_ptr creation stil needs to be moved earlier at some of the call sites.
llvm-svn: 217474
Diffstat (limited to 'clang/lib/Frontend/DependencyGraph.cpp')
-rw-r--r-- | clang/lib/Frontend/DependencyGraph.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/lib/Frontend/DependencyGraph.cpp b/clang/lib/Frontend/DependencyGraph.cpp index 4a7e227..67a977e 100644 --- a/clang/lib/Frontend/DependencyGraph.cpp +++ b/clang/lib/Frontend/DependencyGraph.cpp @@ -61,7 +61,8 @@ public: void clang::AttachDependencyGraphGen(Preprocessor &PP, StringRef OutputFile, StringRef SysRoot) { - PP.addPPCallbacks(new DependencyGraphCallback(&PP, OutputFile, SysRoot)); + PP.addPPCallbacks(llvm::make_unique<DependencyGraphCallback>(&PP, OutputFile, + SysRoot)); } void DependencyGraphCallback::InclusionDirective(SourceLocation HashLoc, |