Blindly try to fix the clang-tools-extra build since my local build doesn't appear to be picking it up

llvm-svn: 207230
This commit is contained in:
David Blaikie 2014-04-25 15:06:18 +00:00
parent 39808ff901
commit 329be894f1
2 changed files with 3 additions and 5 deletions

View File

@ -24,10 +24,10 @@ namespace query {
/// Represents the state for a particular clang-query session.
class QuerySession {
public:
QuerySession(llvm::ArrayRef<ASTUnit *> ASTs)
QuerySession(llvm::ArrayRef<std::unique_ptr<ASTUnit>> ASTs)
: ASTs(ASTs), OutKind(OK_Diag), BindRoot(true) {}
llvm::ArrayRef<ASTUnit *> ASTs;
llvm::ArrayRef<std::unique_ptr<ASTUnit>> ASTs;
OutputKind OutKind;
bool BindRoot;
llvm::StringMap<ast_matchers::dynamic::VariantValue> NamedValues;

View File

@ -85,7 +85,7 @@ int main(int argc, const char **argv) {
}
ClangTool Tool(*Compilations, SourcePaths);
std::vector<ASTUnit *> ASTs;
std::vector<std::unique_ptr<ASTUnit>> ASTs;
if (Tool.buildASTs(ASTs) != 0)
return 1;
@ -128,7 +128,5 @@ int main(int argc, const char **argv) {
}
}
llvm::DeleteContainerPointers(ASTs);
return 0;
}