aboutsummaryrefslogtreecommitdiff
path: root/src/compiler.js
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2011-12-15 15:38:26 -0800
committerAlon Zakai <alonzakai@gmail.com>2011-12-15 17:07:31 -0800
commit6259358a5a125b64a90651ab1ee535e919339b68 (patch)
treecbc28b6b1abba72c488531eeb2269f437b14fbd4 /src/compiler.js
parentad34dff9ae485eafab64d68a61a193f82f3b1988 (diff)
rewrite variable analysis code. eliminate unused variables without side effects, and improve nativization logic.
Diffstat (limited to 'src/compiler.js')
-rw-r--r--src/compiler.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/compiler.js b/src/compiler.js
index 7e3839b6..2dea5797 100644
--- a/src/compiler.js
+++ b/src/compiler.js
@@ -180,9 +180,10 @@ if (FAKE_X86_FP80) {
var lines = raw.split('\n');
raw = null;
-// Parse metadata
+// Pre-process the LLVM assembly
Debugging.handleMetadata(lines);
+PreProcessor.eliminateUnneededIntrinsics(lines);
// Do it