mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-21 18:01:15 +00:00
[qfcc] Add some disabled additional statement info
It's a bit cluttered for normal debugging, but I haven't decided how to make it optional just yet.
This commit is contained in:
parent
0cbe438ac1
commit
0de011d0bf
1 changed files with 25 additions and 0 deletions
|
@ -41,6 +41,7 @@
|
|||
|
||||
#include <QF/dstring.h>
|
||||
#include <QF/quakeio.h>
|
||||
#include <QF/set.h>
|
||||
#include <QF/va.h>
|
||||
|
||||
#include "dags.h"
|
||||
|
@ -62,6 +63,30 @@ flow_statement (dstring_t *dstr, statement_t *s)
|
|||
dasprintf (dstr, "<td>%s</td>", html_string(operand_string (s->opa)));
|
||||
dasprintf (dstr, "<td>%s</td>", html_string(operand_string (s->opb)));
|
||||
dasprintf (dstr, "<td>%s</td>", html_string(operand_string (s->opc)));
|
||||
#if 0
|
||||
if (s->number >= 0) {
|
||||
set_t *use = set_new ();
|
||||
set_t *def = set_new ();
|
||||
set_t *kill = set_new ();
|
||||
set_t *ops = set_new ();
|
||||
operand_t *operands[4];
|
||||
|
||||
flow_analyze_statement (s, use, def, kill, operands);
|
||||
for (int i = 0; i < 4; i++) {
|
||||
if (operands[i]) {
|
||||
set_add (ops, i);
|
||||
}
|
||||
}
|
||||
dasprintf (dstr, "<td>%s</td>", html_string(set_as_string (use)));
|
||||
dasprintf (dstr, "<td>%s</td>", html_string(set_as_string (def)));
|
||||
dasprintf (dstr, "<td>%s</td>", html_string(set_as_string (kill)));
|
||||
dasprintf (dstr, "<td>%s</td>", html_string(set_as_string (ops)));
|
||||
|
||||
set_delete (use);
|
||||
set_delete (def);
|
||||
set_delete (kill);
|
||||
}
|
||||
#endif
|
||||
dasprintf (dstr, "</tr>\n");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue