diff options
author | Alon Zakai <alonzakai@gmail.com> | 2011-08-14 10:53:58 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2011-08-14 10:53:58 -0700 |
commit | 0bd1db73469505d759256b5f3bd3227d41cc0a51 (patch) | |
tree | 8966b8dcca528a21cab3ffc1896bba43ec183cb2 /src/parseTools.js | |
parent | c2e69e7b25755bbb4ccd290bbad358edda8ca12b (diff) |
allow walking of allocatedNum in alloca items
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 91956cad..5c746de0 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -1278,6 +1278,13 @@ function walkInterdata(item, pre, post, obj) { if (walkInterdata(item.params[i], pre, post, obj)) return true; } } + if (item.possibleVars) { // other attributes that might contain interesting data; here, variables + var box = { intertype: 'value', ident: '' }; + for (i = 0; i <= item.possibleVars.length; i++) { + box.ident = item[item.possibleVars[i]]; + if (walkInterdata(box, pre, post, obj)) return true; + } + } return post(item, originalObj, obj); } |