summaryrefslogtreecommitdiff
path: root/clang-tools-extra/pp-trace
diff options
context:
space:
mode:
authorDavid Blaikie <dblaikie@gmail.com>2014-07-17 22:33:56 +0000
committerDavid Blaikie <dblaikie@gmail.com>2014-07-17 22:33:56 +0000
commitae0e948e8a68efd658cd80720309056872b33e8e (patch)
tree37e128c4d658dd59ef45d30797ae9c571ee74e23 /clang-tools-extra/pp-trace
parent83f71ebbc657245da9f66f1a3b10bb69812b9031 (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.
Diffstat (limited to 'clang-tools-extra/pp-trace')
-rw-r--r--clang-tools-extra/pp-trace/PPTrace.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/clang-tools-extra/pp-trace/PPTrace.cpp b/clang-tools-extra/pp-trace/PPTrace.cpp
index 9dc1bbbe79b..ed955fb63bb 100644
--- a/clang-tools-extra/pp-trace/PPTrace.cpp
+++ b/clang-tools-extra/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: