aboutsummaryrefslogtreecommitdiff
path: root/src/parseTools.js
diff options
context:
space:
mode:
authorEhsan Akhgari <ehsan.akhgari@gmail.com>2012-01-27 15:02:10 -0500
committerEhsan Akhgari <ehsan.akhgari@gmail.com>2012-01-27 15:02:10 -0500
commit65febb8bf9e70ebacc252f75374c5c291befa6de (patch)
tree12f601f70cef7844d3212b10b9505953e8d62120 /src/parseTools.js
parent58d80ab53ea7c71b6e7dd0e56bee1335514a59f6 (diff)
parentfff86540c3c5147e745a038bffad034ea1058d22 (diff)
Merge branch 'handle_broken_lli' into glgears
Conflicts: src/preamble.js
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..ad6f2830 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);
}