Update LLVM (and llvm-bazel). (#550)

This picks up a newer version of LLVM and the LLVM Bazel integration.
The big change here is that we can configure the LLVM targets that are
built, which allows us to dramatically reduce the build costs by
focusing on a couple of CPUs for the time being.

There are a few API updates needed as well.

This also rotates the cache version so we start with a clean Bazel cache
from here. Otherwise we'd potentially pay the cost of carrying around
stale bits of LLVM endlessly.
This commit is contained in:
Chandler Carruth
2021-05-25 15:21:57 -07:00
committed by GitHub
parent 5fe800202b
commit 4034fa223d
5 changed files with 10 additions and 5 deletions
+3 -2
View File
@@ -11,8 +11,9 @@ namespace ct = ::clang::tooling;
auto main(int argc, const char** argv) -> int {
llvm::cl::OptionCategory category("C++ refactoring options");
ct::CommonOptionsParser op(argc, argv, category);
ct::RefactoringTool tool(op.getCompilations(), op.getSourcePathList());
auto parser = ct::CommonOptionsParser::create(argc, argv, category);
ct::RefactoringTool tool(parser->getCompilations(),
parser->getSourcePathList());
// Set up AST matcher callbacks.
cam::MatchFinder finder;