diff options
author | Steve Reinhardt <steve.reinhardt@amd.com> | 2009-11-05 11:11:06 -0800 |
---|---|---|
committer | Steve Reinhardt <steve.reinhardt@amd.com> | 2009-11-05 11:11:06 -0800 |
commit | 9098010e3fccf779786c7f0e1dfab9d522f72eb5 (patch) | |
tree | 688b989cf6d6d0fd081143835c3b5ba55b469c8d /src/mem/slicc/ast/DeclListAST.py | |
parent | 058ccfc7fe7be1b7b7124ecdd0d9d79fe4d6a86f (diff) | |
download | gem5-9098010e3fccf779786c7f0e1dfab9d522f72eb5.tar.xz |
slicc: tweak file enumeration for scons
Right now .cc and .hh files are handled separately, but then
they're just munged together at the end by scons, so it
doesn't buy us anything. Might as well munge from the start
since we'll eventually be adding generated Python files
to the list too.
Diffstat (limited to 'src/mem/slicc/ast/DeclListAST.py')
-rw-r--r-- | src/mem/slicc/ast/DeclListAST.py | 6 |
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: |