aboutsummaryrefslogtreecommitdiff
path: root/tools/asm_module.py
diff options
context:
space:
mode:
authorAlon Zakai <alonzakai@gmail.com>2014-02-10 15:47:49 -0800
committerAlon Zakai <alonzakai@gmail.com>2014-02-10 15:48:47 -0800
commitdea258716e66c370cfbd7b66eed1f7f3465dfe97 (patch)
treebddc998683cb1f1126b68e5698284ffb99d7b909 /tools/asm_module.py
parentb5f9734ee91a55bdc7176ee28ed125beed02c353 (diff)
add aborting stubs in main modules, and replace them with functions from side modules
Diffstat (limited to 'tools/asm_module.py')
-rw-r--r--tools/asm_module.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/asm_module.py b/tools/asm_module.py
index f383eba6..a1aecdda 100644
--- a/tools/asm_module.py
+++ b/tools/asm_module.py
@@ -107,6 +107,9 @@ class AsmModule():
all_imports[key] = value
if (value_concrete or main_value_concrete) and key in all_sendings:
del all_sendings[key] # import of external value no longer needed
+ for key in all_imports.keys():
+ if key in self.funcs:
+ del all_imports[key] # import in main, provided in side
main.imports_js = '\n'.join(['var %s = %s;' % (key, value) for key, value in all_imports.iteritems()]) + '\n'
# check for undefined references to global variables