aboutsummaryrefslogtreecommitdiff
path: root/src/settings.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2013-11-12 21:09:38 -0800
committerAlon Zakai <alonzakai@gmail.com>2013-11-12 21:09:38 -0800
commit4caba7e02ab1e3dcae31114fd119544c7e106e70 (patch)
tree6f2a83cb8cc7679da85a4e1d564ef11d2eb06b4f /src/settings.js
parent634ded6639c0a25b558aedbfc8bb4add0a5feea9 (diff)
make DEAD_FUNCTIONS work on js library functions too
Diffstat (limited to 'src/settings.js')
-rw-r--r--src/settings.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/settings.js b/src/settings.js
index 4ffbb415..0d8d3da5 100644
--- a/src/settings.js
+++ b/src/settings.js
@@ -428,6 +428,8 @@ var DEAD_FUNCTIONS = []; // Functions on this list are not converted to JS, and
// reducing code size.
// If a dead function is actually called, you will get a runtime
// error.
+ // This can affect both functions in compiled code, and system
+ // library functions (e.g., you can use this to kill printf).
// TODO: options to lazily load such functions
var EXPLICIT_ZEXT = 0; // If 1, generate an explicit conversion of zext i1 to i32, using ?: