projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7babbdb
)
Printing LIR is optional
author
Ian Romanick
<ian.d.romanick@intel.com>
Tue, 15 Jun 2010 19:51:38 +0000
(12:51 -0700)
committer
Ian Romanick
<ian.d.romanick@intel.com>
Tue, 15 Jun 2010 19:51:38 +0000
(12:51 -0700)
main.cpp
patch
|
blob
|
history
diff --git
a/main.cpp
b/main.cpp
index 616236c402d359d526b8082baff7b007fd71db7c..662686373ad9ee30f36140beb6d5f2c0ea39955c 100644
(file)
--- 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);
}