pub fn gather_symbols(module: &ModuleBody, ctx: &mut Context) -> Result<()>
Collect global symbols as a first pass before generating HIR