faster get_dependencies on Script

This commit is contained in:
Bryan Bishop 2012-04-27 13:29:41 -05:00
parent 34ff5fc4ce
commit ce35b436ed

View File

@ -2056,10 +2056,13 @@ class Script:
return commands
def get_dependencies(self):
if self.dependencies != None:
return self.dependencies
dependencies = []
for command in self.commands:
deps = command.get_dependencies()
dependencies.extend(deps)
self.dependencies = dependencies
return dependencies
def to_asm(self):