diff options
author | Teddy <ted.sybil@gmail.com> | 2014-04-11 15:53:22 +0800 |
---|---|---|
committer | Teddy <ted.sybil@gmail.com> | 2014-04-11 15:53:22 +0800 |
commit | a19c85b2b0c70db4e87efe129da38ea870f8971c (patch) | |
tree | 23be83dde9d5e9b8094a99fe758478e435304fe7 /ast.c | |
parent | 8b7a07ec7fe1449b83112feae26566167600d056 (diff) |
basic const precalculation
Diffstat (limited to 'ast.c')
-rw-r--r-- | ast.c | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -365,13 +365,15 @@ char *cnode_debug_type_repr(CNode *ast) { assert(type); } if (aptr == abuff) - sprintf(buffer, "%s(%d:%d)->(var:%lx, type:%lx)", type, - ast->loc.row, ast->loc.col, (size_t)ast->ext.var, (size_t)ast->ext.type); + sprintf(buffer, "%s(%d:%d)->(var:%lx|type:%lx|ic:%d|cv:%d)", type, + ast->loc.row, ast->loc.col, (size_t)ast->ext.var, (size_t)ast->ext.type, + ast->ext.is_const, ast->ext.const_val); else { *aptr = '\0'; - sprintf(buffer, "%s:%s(%d:%d)->(var:%lx, type:%lx)", type, abuff, - ast->loc.row, ast->loc.col, (size_t)ast->ext.var, (size_t)ast->ext.type); + sprintf(buffer, "%s:%s(%d:%d)->(var:%lx|type:%lx|ic:%d|cv:%d)", type, abuff, + ast->loc.row, ast->loc.col, (size_t)ast->ext.var, (size_t)ast->ext.type, + ast->ext.is_const, ast->ext.const_val); } return buffer; } |