summaryrefslogtreecommitdiff
path: root/src/mem/slicc/ast/DeclListAST.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/slicc/ast/DeclListAST.py')
-rw-r--r--src/mem/slicc/ast/DeclListAST.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mem/slicc/ast/DeclListAST.py b/src/mem/slicc/ast/DeclListAST.py
index 42f98afc7..36c520070 100644
--- a/src/mem/slicc/ast/DeclListAST.py
+++ b/src/mem/slicc/ast/DeclListAST.py
@@ -38,9 +38,11 @@ class DeclListAST(AST):
def __repr__(self):
return "[DeclListAST: %s]" % (', '.join(repr(d) for d in self.decls))
- def files(self, hh, cc, parent=None):
+ def files(self, parent=None):
+ s = set()
for decl in self.decls:
- decl.files(hh, cc, parent)
+ s |= decl.files(parent)
+ return s
def generate(self):
for decl in self.decls: