diff options
author | David Blaikie <dblaikie@gmail.com> | 2014-07-17 22:34:12 +0000 |
---|---|---|
committer | David Blaikie <dblaikie@gmail.com> | 2014-07-17 22:34:12 +0000 |
commit | 80bfbba822da41b74969be8e635b1b4c8e2d3a8c (patch) | |
tree | 9c04bec373a4ad6b3b51026b7879cf93a535158d /examples | |
parent | 9a8dc2497021b3758e1c521c75f0c716da3ca0d4 (diff) | |
download | clang-80bfbba822da41b74969be8e635b1b4c8e2d3a8c.tar.gz |
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
Diffstat (limited to 'examples')
-rw-r--r-- | examples/PrintFunctionNames/PrintFunctionNames.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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<ASTConsumer> CreateASTConsumer(CompilerInstance &CI, - llvm::StringRef) { - return llvm::make_unique<PrintFunctionsConsumer>(); + ASTConsumer *CreateASTConsumer(CompilerInstance &CI, llvm::StringRef) { + return new PrintFunctionsConsumer(); } bool ParseArgs(const CompilerInstance &CI, |