summaryrefslogtreecommitdiff
path: root/src/mem/slicc/ast/EnumDeclAST.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/mem/slicc/ast/EnumDeclAST.py')
-rw-r--r--src/mem/slicc/ast/EnumDeclAST.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mem/slicc/ast/EnumDeclAST.py b/src/mem/slicc/ast/EnumDeclAST.py
index c16fc8a75..a20f4b749 100644
--- a/src/mem/slicc/ast/EnumDeclAST.py
+++ b/src/mem/slicc/ast/EnumDeclAST.py
@@ -38,16 +38,16 @@ class EnumDeclAST(DeclAST):
def __repr__(self):
return "[EnumDecl: %s]" % (self.type_ast)
- def files(self, hh, cc, parent=None):
+ def files(self, parent=None):
if "external" in self:
- return
+ return set()
if parent:
ident = "%s_%s" % (parent, self.type_ast.ident)
else:
ident = self.type_ast.ident
- hh.add("%s.hh" % ident)
- cc.add("%s.cc" % ident)
+ s = set(("%s.hh" % ident, "%s.cc" % ident))
+ return s
def generate(self):
ident = str(self.type_ast)