aboutsummaryrefslogtreecommitdiff
path: root/src/parseTools.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2012-01-25 10:17:12 -0800
committerAlon Zakai <alonzakai@gmail.com>2012-01-25 10:17:12 -0800
commit0bdac9f178cb4aefdd7b11eee93110324c76f9a2 (patch)
treeb9b2510d4616df4ce7578067ef80e7c739e6131e /src/parseTools.js
parent61e4b6b9d40c966ead0198e9a9a32d1067273ef7 (diff)
parent0040353a176fac6eff5091556afe87c1955e51c3 (diff)
Merge pull request #184 from FishingCactus/_string_table
String constants can be stored in a table to limit variable count
Diffstat (limited to 'src/parseTools.js')
-rw-r--r--src/parseTools.js3
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);
}