actually use the chosen backend in benchmark, was always PB_MIN

This commit is contained in:
Sven M. Hallberg 2013-04-17 15:09:24 +02:00
parent 808d216145
commit e73377fbda

View file

@ -36,7 +36,7 @@ HBenchmarkResults *h_benchmark__m(HAllocator* mm__, const HParser* parser, HPars
for (backend = PB_MIN; backend < PB_MAX; backend++) {
ret->results[backend].backend = backend;
// Step 1: Compile grammar for given parser...
if (h_compile(parser, PB_MIN, NULL) == -1) {
if (h_compile(parser, backend, NULL) == -1) {
// backend inappropriate for grammar...
fprintf(stderr, "failed\n");
ret->results[backend].compile_success = false;