commit 02b29b1145f22f0e3dd3f15d9ce0cf16f7a1e443
parent 85fb4d3d585708ac69148f4b7513edc7b12ca64b
Author: kyle <kyle@getaddrinfo.net>
Date: Fri, 25 Mar 2016 11:41:21 -0600
instrument: go back to llvm 3.5 interface
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/instrument/instrument_action.cc b/instrument/instrument_action.cc
@@ -15,14 +15,14 @@
#include "runtime_h.h"
-std::unique_ptr<ASTConsumer>
+ASTConsumer *
InstrumentAction::CreateASTConsumer(CompilerInstance &CI, StringRef file)
{
// llvm::errs() << "** Creating AST consumer for: " << file << "\n";
SourceManager &sm = CI.getSourceManager();
TheRewriter.setSourceMgr(sm, CI.getLangOpts());
- return std::unique_ptr<ASTConsumer>(new MyASTConsumer(TheRewriter));
+ return new MyASTConsumer(TheRewriter);
}
unsigned int
diff --git a/instrument/instrument_action.h b/instrument/instrument_action.h
@@ -12,7 +12,7 @@ public:
InstrumentAction() {};
void EndSourceFileAction() override;
- std::unique_ptr<ASTConsumer> CreateASTConsumer(CompilerInstance &, StringRef) override;
+ ASTConsumer *CreateASTConsumer(CompilerInstance &, StringRef) override;
private:
Rewriter TheRewriter;