diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-11-24 17:36:40 +0100 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-11-24 17:36:40 +0100 |
commit | a27c01ed25bcba9abda5f06d79ab166ea5e9d608 (patch) | |
tree | f7db9c5eafe82c47359a42c7ecaccf547132551f /src/intertyper.js | |
parent | 915d48e596c36117b58c8d530f72abac8ea28e8e (diff) |
allow limited the amount of named globals
Diffstat (limited to 'src/intertyper.js')
-rw-r--r-- | src/intertyper.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/intertyper.js b/src/intertyper.js index 1ad51b96..dbd5f458 100644 --- a/src/intertyper.js +++ b/src/intertyper.js @@ -507,6 +507,9 @@ function intertyper(data, sidePass, baseLineNums) { private_: private_, lineNum: item.lineNum }; + if (NUM_NAMED_GLOBALS >= 0) { + Variables.globals[ret.ident].type = ret.type; + } Types.needAnalysis[ret.type] = 0; if (ident == '@llvm.global_ctors') { ret.ctors = []; |