Names visible in the current translation unit are always considered to be visible, so I don't think it's possible to observe the change in visible modules for the currently-being-built module. (We also never query it, since it's not an owning module for any declaration.) http://reviews.llvm.org/D1204