diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-10-30 21:11:06 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-10-30 21:11:06 -0700 |
commit | 819c105c234a89e2d0936c1d7218612db43dd56c (patch) | |
tree | 926ea1c8d6323097fc07f8d7b35b27db473c1b2f /src/parseTools.js | |
parent | 5dfe077ac92295cae2396fa06866b366defa8b23 (diff) |
remove finalizeParam and properly use finalizeLLVMParameter everywhere
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index fb3b9652..75ba6fd2 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -563,25 +563,6 @@ function sortGlobals(globals) { }); } -function finalizeParam(param) { - if (param.intertype in PARSABLE_LLVM_FUNCTIONS) { - return finalizeLLVMFunctionCall(param); - } else if (param.intertype === 'blockaddress') { - return finalizeBlockAddress(param); - } else if (param.intertype === 'jsvalue') { - return param.ident; - } else { - if (param.type == 'i64' && USE_TYPED_ARRAYS == 2) { - return parseI64Constant(param.ident); - } - var ret = toNiceIdent(param.ident); - if (ret in Variables.globals) { - ret = makeGlobalUse(ret); - } - return ret; - } -} - // Segment ==> Parameter function parseLLVMSegment(segment) { var type; |