Revert "don't touch parser->backend in benchmark.c"

This reverts commit d81d820dca.
This commit is contained in:
Sven M. Hallberg 2013-05-12 01:18:46 +02:00
parent 75326263df
commit fa1e59fe68

View file

@ -34,6 +34,7 @@ HBenchmarkResults *h_benchmark__m(HAllocator* mm__, HParser* parser, HParserTest
ret->results = h_new(HBackendResults, ret->len); ret->results = h_new(HBackendResults, ret->len);
for (backend = PB_MIN; backend <= PB_MAX; backend++) { for (backend = PB_MIN; backend <= PB_MAX; backend++) {
ret->results[backend].backend = backend;
// Step 1: Compile grammar for given parser... // Step 1: Compile grammar for given parser...
if (h_compile(parser, backend, NULL) == -1) { if (h_compile(parser, backend, NULL) == -1) {
// backend inappropriate for grammar... // backend inappropriate for grammar...