diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-07-17 22:33:56 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-07-17 22:33:56 +0000 |
commit | 3d1de3f26aeb47b0cdd10e7f85f854c388461361 (patch) | |
tree | 42306687c9a8641a030746f5202b9d50c152edbb /pp-trace | |
parent | 78e938385a69964ed7e8e36841d1e490439b13ba (diff) |
Revert "unique_ptr-ify ownership of ASTConsumers"
This reverts commit r213308.
Reverting to have some on-list discussion/confirmation about the ongoing
direction of smart pointer usage in the LLVM project.
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@213324 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'pp-trace')
-rw-r--r-- | pp-trace/PPTrace.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/pp-trace/PPTrace.cpp b/pp-trace/PPTrace.cpp index 9dc1bbbe..ed955fb6 100644 --- a/pp-trace/PPTrace.cpp +++ b/pp-trace/PPTrace.cpp @@ -120,10 +120,9 @@ public: : Ignore(Ignore), CallbackCalls(CallbackCalls) {} protected: - std::unique_ptr<clang::ASTConsumer> - CreateASTConsumer(CompilerInstance &CI, StringRef InFile) override { - return llvm::make_unique<PPTraceConsumer>(Ignore, CallbackCalls, - CI.getPreprocessor()); + virtual clang::ASTConsumer *CreateASTConsumer(CompilerInstance &CI, + StringRef InFile) { + return new PPTraceConsumer(Ignore, CallbackCalls, CI.getPreprocessor()); } private: |