summaryrefslogtreecommitdiff
path: root/src/mem/slicc/ast/FuncDeclAST.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/ast/FuncDeclAST.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/ast/FuncDeclAST.py')
-rw-r--r--src/mem/slicc/ast/FuncDeclAST.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mem/slicc/ast/FuncDeclAST.py b/src/mem/slicc/ast/FuncDeclAST.py
index 7ff3bf8a7..980804c2a 100644
--- a/src/mem/slicc/ast/FuncDeclAST.py
+++ b/src/mem/slicc/ast/FuncDeclAST.py
@@ -42,15 +42,15 @@ class FuncDeclAST(DeclAST):
def __repr__(self):
return "[FuncDecl: %s]" % self.ident
- def files(self, hh, cc, parent=None):
+ def files(self, parent=None):
if "external" in self or self.statements is None:
- return
+ return set()
if parent:
ident = "%s_%s" % (parent, self.ident)
else:
ident = self.ident
- cc.add("%s.cc" % ident)
+ return set(("%s.cc" % ident,))
def generate(self):
types = []