diff options
author | Alon Zakai <alonzakai@gmail.com> | 2012-12-09 12:25:04 -0800 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2012-12-09 12:25:04 -0800 |
commit | eebf751df357e74c3ea17ef6ea8be322aa7e442c (patch) | |
tree | e23fa801c31a7e1b88084a429ee6d3ddc2b1ff97 /src/parseTools.js | |
parent | b8bf06bf01efccded4b0f0a326fb4494b11d7e10 (diff) |
fix resume with legalized structurals
Diffstat (limited to 'src/parseTools.js')
-rw-r--r-- | src/parseTools.js | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/parseTools.js b/src/parseTools.js index 13839d17..06d4494f 100644 --- a/src/parseTools.js +++ b/src/parseTools.js @@ -1591,6 +1591,14 @@ function makeStructuralReturn(values) { } } +function makeStructuralAccess(ident, i) { + if (USE_TYPED_ARRAYS == 2) { + return ident + '$' + i; + } else { + return ident + '.f' + i; + } +} + // From parseLLVMSegment function finalizeLLVMParameter(param, noIndexizeFunctions) { var ret; |