[clang-tools-extra] d263447 - [pseudo] Fix the build for the benchmark tool.
Haojian Wu via cfe-commits
cfe-commits at lists.llvm.org
Tue Jul 5 06:42:50 PDT 2022
Author: Haojian Wu
Date: 2022-07-05T15:42:41+02:00
New Revision: d26344731128ccdd8eeb27a12b2c3bd75e5e3a63
URL: https://github.com/llvm/llvm-project/commit/d26344731128ccdd8eeb27a12b2c3bd75e5e3a63
DIFF: https://github.com/llvm/llvm-project/commit/d26344731128ccdd8eeb27a12b2c3bd75e5e3a63.diff
LOG: [pseudo] Fix the build for the benchmark tool.
Added:
Modified:
clang-tools-extra/pseudo/benchmarks/Benchmark.cpp
Removed:
################################################################################
diff --git a/clang-tools-extra/pseudo/benchmarks/Benchmark.cpp b/clang-tools-extra/pseudo/benchmarks/Benchmark.cpp
index 5bf6ff2c08f32..02f4a40fae7c7 100644
--- a/clang-tools-extra/pseudo/benchmarks/Benchmark.cpp
+++ b/clang-tools-extra/pseudo/benchmarks/Benchmark.cpp
@@ -117,12 +117,12 @@ static void preprocess(benchmark::State &State) {
BENCHMARK(preprocess);
static void glrParse(benchmark::State &State) {
- SymbolID StartSymbol = *Lang->G->findNonterminal("translation-unit");
+ SymbolID StartSymbol = *Lang->G.findNonterminal("translation-unit");
TokenStream Stream = lexAndPreprocess();
for (auto _ : State) {
pseudo::ForestArena Forest;
pseudo::GSS GSS;
- pseudo::glrParse(Stream, ParseParams{*Lang->G, Lang->Table, Forest, GSS},
+ pseudo::glrParse(Stream, ParseParams{Lang->G, Lang->Table, Forest, GSS},
StartSymbol);
}
State.SetBytesProcessed(static_cast<uint64_t>(State.iterations()) *
More information about the cfe-commits
mailing list