Add support for separate symbol_tables and name in Modules.

This commit is contained in:
Mike Auty
2018-06-21 00:25:55 +01:00
parent d68d62e47d
commit aedcf40fc2
2 changed files with 6 additions and 4 deletions
+3 -1
View File
@@ -91,11 +91,13 @@ class Module(validity.ValidityRoutines, metaclass = ABCMeta):
context: ContextInterface,
module_name: str,
layer_name: str,
offset: int) -> None:
offset: int,
symbol_table: typing.Optional[str] = None) -> None:
self._context = self._check_type(context, ContextInterface)
self._module_name = self._check_type(module_name, str)
self._layer_name = self._check_type(layer_name, str)
self._offset = self._check_type(offset, int)
self.symbol_table = symbol_table or self._module_name
super().__init__()
@property