From: Ian Romanick Date: Tue, 15 Jun 2010 19:51:38 +0000 (-0700) Subject: Printing LIR is optional X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=81e1747ac5206948893876b7da6fdb27bff26e0f;p=mesa.git Printing LIR is optional --- diff --git a/main.cpp b/main.cpp index 616236c402d..662686373ad 100644 --- a/main.cpp +++ b/main.cpp @@ -88,9 +88,11 @@ usage_fail(const char *name) int dump_ast = 0; +int dump_lir = 0; const struct option compiler_opts[] = { { "dump-ast", 0, &dump_ast, 1 }, + { "dump-lir", 0, &dump_lir, 1 }, { NULL, 0, NULL, 0 } }; @@ -172,7 +174,7 @@ main(int argc, char **argv) } /* Print out the resulting IR */ - if (!state.error) { + if (!state.error && dump_lir) { _mesa_print_ir(&instructions, &state); }