mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-02 11:40:10 +01:00
Printing LIR is optional
This commit is contained in:
parent
7babbdbd82
commit
81e1747ac5
1 changed files with 3 additions and 1 deletions
4
main.cpp
4
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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue