diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-07-03 14:59:09 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-07-03 15:31:05 -0700 |
commit | 405d75e8b126beb3c16ae99ecd45909210b30081 (patch) | |
tree | a57f552613cf3a752637faf52c533ce18b82cae3 | |
parent | a4d526cf91f52882a59b11b9bc53fa533a06b33e (diff) |
stop emitting no-longer-needed alias constants
-rw-r--r-- | src/jsifier.js | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index 5cdacc7a..3f8c184c 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -379,22 +379,6 @@ function JSify(data, functionsOnly, givenFunctions) { // Set the actual value in a postset, since it may be a global variable. We also order by dependencies there Variables.globals[item.ident].targetIdent = item.value.ident; var value = Variables.globals[item.ident].resolvedAlias = finalizeLLVMParameter(item.value); - var fix = ''; - if (BUILD_AS_SHARED_LIB == 2 && !item.private_) { - var target = item.ident; - if (isFunctionType(item.type)) { - target = item.value.ident; // the other side does not know this is an alias/function table index. So make it the alias target. - var varData = Variables.globals[target]; - assert(!varData, 'multi-level aliasing does not work yet in shared lib 2 exports'); - } - fix = '\nif (globalScope) { assert(!globalScope["' + item.ident + '"]); globalScope["' + item.ident + '"] = ' + target + ' }' - } - ret.push({ - intertype: 'GlobalVariablePostSet', - ident: item.ident, - dependencies: set([value]), - JS: item.ident + ' = ' + value + ';' + fix - }); if ((MAIN_MODULE || SIDE_MODULE) && isFunctionType(item.type)) { var target = item.value.ident; if (!Functions.aliases[target]) Functions.aliases[target] = []; |