summaryrefslogtreecommitdiff
path: root/src/mem/slicc/parser.py
diff options
context:
space:
mode:
authorSteve Reinhardt <steve.reinhardt@amd.com>2009-11-05 11:11:06 -0800
committerSteve Reinhardt <steve.reinhardt@amd.com>2009-11-05 11:11:06 -0800
commit9098010e3fccf779786c7f0e1dfab9d522f72eb5 (patch)
tree688b989cf6d6d0fd081143835c3b5ba55b469c8d /src/mem/slicc/parser.py
parent058ccfc7fe7be1b7b7124ecdd0d9d79fe4d6a86f (diff)
downloadgem5-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/parser.py')
-rw-r--r--src/mem/slicc/parser.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/mem/slicc/parser.py b/src/mem/slicc/parser.py
index 0e5ccc885..6c3f45629 100644
--- a/src/mem/slicc/parser.py
+++ b/src/mem/slicc/parser.py
@@ -114,19 +114,17 @@ class SLICC(Grammar):
self.symtab.writeHTMLFiles(code_path)
def files(self):
- cc = set([
+ f = set([
'ControllerFactory.cc',
- 'MachineType.cc'])
-
- hh = set([
'ControllerFactory.hh',
+ 'MachineType.cc',
'MachineType.hh',
'Types.hh' ])
for decl_list in self.decl_list_vec:
- decl_list.files(hh, cc)
+ f |= decl_list.files()
- return hh, cc
+ return f
t_ignore = '\t '