Mercurial > hg-old > index.cgi
changeset 366:84dc6d2ec6ba
Added some more expression reductions
author | lost@starbug |
---|---|
date | Wed, 14 Apr 2010 21:02:53 -0600 |
parents | 6a98cc90c14f |
children | 34dfc9747f23 |
files | lwasm/pass4.c |
diffstat | 1 files changed, 8 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/lwasm/pass4.c Wed Apr 14 20:49:04 2010 -0600 +++ b/lwasm/pass4.c Wed Apr 14 21:02:53 2010 -0600 @@ -55,8 +55,15 @@ { // find an unresolved instruction for ( ; sl && sl -> len != -1; sl = sl -> next) - /* do nothing */ ; + { + as -> cl = sl; + lwasm_reduce_expr(as, sl -> addr); + // simplify each expression + for (le = sl -> exprs; le; le = le -> next) + lwasm_reduce_expr(as, le -> expr); + } + // simplify address as -> cl = sl; lwasm_reduce_expr(as, sl -> addr);