From 80bfbba822da41b74969be8e635b1b4c8e2d3a8c Mon Sep 17 00:00:00 2001 From: David Blaikie Date: Thu, 17 Jul 2014 22:34:12 +0000 Subject: Revert "unique_ptr-ify ownership of ASTConsumers" This reverts commit r213307. 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/cfe/trunk@213325 91177308-0d34-0410-b5e6-96231b3b80d8 --- examples/PrintFunctionNames/PrintFunctionNames.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/PrintFunctionNames/PrintFunctionNames.cpp b/examples/PrintFunctionNames/PrintFunctionNames.cpp index e8a361dbee..3f18cd45e5 100644 --- a/examples/PrintFunctionNames/PrintFunctionNames.cpp +++ b/examples/PrintFunctionNames/PrintFunctionNames.cpp @@ -36,9 +36,8 @@ public: class PrintFunctionNamesAction : public PluginASTAction { protected: - std::unique_ptr CreateASTConsumer(CompilerInstance &CI, - llvm::StringRef) { - return llvm::make_unique(); + ASTConsumer *CreateASTConsumer(CompilerInstance &CI, llvm::StringRef) { + return new PrintFunctionsConsumer(); } bool ParseArgs(const CompilerInstance &CI, -- cgit v1.2.3