Closed
Description
Currently we emit an import stub for every item in an imported module tree.
This is wasteful. Most imported items are never going to be referenced by most
compilation units that reference them; there's no need to form import stubs for
the unreferenced ones.
Fixing this is a matter of a small table in semant full of 'node->referenced'
flags noted while resolving.