def add_global_mapping(self, gv, addr):
        """Override ExecutionEngine.add_global_mapping
        to keep info about defined symbols.
        """
        self._defined_symbols.add(gv.name)
        return self._ee.add_global_mapping(gv, addr)
Override ExecutionEngine.add_global_mapping
        to keep info about defined symbols.
        
numba/core/codegen.py