diff options
author | julien.hamaide <julien.hamaide@fishingcactus.com> | 2012-01-25 15:56:27 +0100 |
---|---|---|
committer | julien.hamaide <julien.hamaide@fishingcactus.com> | 2012-01-25 15:56:27 +0100 |
commit | 0040353a176fac6eff5091556afe87c1955e51c3 (patch) | |
tree | b9b2510d4616df4ce7578067ef80e7c739e6131e /src/parseTools.js | |
parent | 61e4b6b9d40c966ead0198e9a9a32d1067273ef7 (diff) |
String constants are store in a table to limit variable count
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 18ce807e..0eaf4e0b 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -1434,6 +1434,9 @@ function finalizeLLVMParameter(param, noIndexizeFunctions) { } } else if (param.intertype == 'value') { ret = param.ident; + if(ret in Variables.globals && Variables.globals[ret].isString) { + ret = "STRING_TABLE." + ret; + } if (param.type == 'i64' && I64_MODE == 1) { ret = parseI64Constant(ret); } |