diff options
author | Alon Zakai <alonzakai@gmail.com> | 2013-04-23 17:00:53 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2013-04-23 17:00:53 -0700 |
commit | b49c89fd54b60b03e437367c30bf92daf4b14d6a (patch) | |
tree | 5813cbaf6f9b09362e240888cc38001b2d5802e5 | |
parent | a5e96a395fcd69e44b7df074151e5c9783c1ded6 (diff) |
remove UNRESOLVED_AS_DEAD since it doesn't work
-rw-r--r-- | src/jsifier.js | 2 | ||||
-rw-r--r-- | src/settings.js | 4 |
2 files changed, 1 insertions, 5 deletions
diff --git a/src/jsifier.js b/src/jsifier.js index cd18f74d..fb761b18 100644 --- a/src/jsifier.js +++ b/src/jsifier.js @@ -487,7 +487,7 @@ function JSify(data, functionsOnly, givenFunctions) { } else if (LibraryManager.library.hasOwnProperty(shortident)) { item.JS = addFromLibrary(shortident); } else if (!LibraryManager.library.hasOwnProperty(shortident + '__inline')) { - if (!(item.ident in DEAD_FUNCTIONS) && !UNRESOLVED_AS_DEAD) { + if (!(item.ident in DEAD_FUNCTIONS)) { item.JS = 'var ' + item.ident + '; // stub for ' + item.ident; if (ASM_JS) { error('Unresolved symbol: ' + item.ident + ', this must be corrected for asm.js validation to succeed. Consider adding it to DEAD_FUNCTIONS.'); diff --git a/src/settings.js b/src/settings.js index d30db173..8c7d1f83 100644 --- a/src/settings.js +++ b/src/settings.js @@ -351,10 +351,6 @@ var DEAD_FUNCTIONS = []; // Functions on this list are not converted to JS, and // If a dead function is actually called, you will get a runtime // error. // TODO: options to lazily load such functions -var UNRESOLVED_AS_DEAD = 0; // Handle all unresolved functions as if they were in the - // list of dead functions. This is a quick way to turn - // all unresolved references into runtime aborts (and not - // get compile-time warnings or errors on them). var EXPLICIT_ZEXT = 0; // If 1, generate an explicit conversion of zext i1 to i32, using ?: |