diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-01-31 18:11:28 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-01-31 18:11:28 -0800 |
commit | 88c3f163048d7f9107f314c98fc94abc9271d641 (patch) | |
tree | d94283c0e1b1de0f3c2aefa9db44040ec7885183 /src/parseTools.js | |
parent | f6c2ee75635583e2652df34045464ce908645044 (diff) | |
parent | 195c3e39cc0fba69d551836e7806d1cb55b742f0 (diff) |
Merge branch 'master' into llvmopts
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 38467270..a53ff1c0 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -390,7 +390,12 @@ function finalizeParam(param) { if (param.type == 'i64' && I64_MODE == 1) { return parseI64Constant(param.ident); } - return toNiceIdent(param.ident); + var ret = toNiceIdent(param.ident); + if (ret in Variables.globals && Variables.globals[ret].isString) { + ret = "STRING_TABLE." + ret; + } + + return ret; } } |