From b4152e250da1999d7e495d5501f029f5370e01ed Mon Sep 17 00:00:00 2001 From: Nilay Vaish Date: Wed, 27 Jul 2011 20:20:53 -0500 Subject: SLICC: Put functions of a controller in its .cc file Currently, functions associated with a controller go into separate files. This patch puts all the functions in the controller's .cc file. This should hopefully take away some time from compilation. --- src/mem/slicc/ast/FuncDeclAST.py | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'src/mem/slicc/ast') diff --git a/src/mem/slicc/ast/FuncDeclAST.py b/src/mem/slicc/ast/FuncDeclAST.py index a87d61119..54b0f2c59 100644 --- a/src/mem/slicc/ast/FuncDeclAST.py +++ b/src/mem/slicc/ast/FuncDeclAST.py @@ -41,14 +41,7 @@ class FuncDeclAST(DeclAST): return "[FuncDecl: %s]" % self.ident def files(self, parent=None): - if "external" in self or self.statements is None: - return set() - - if parent: - ident = "%s_%s" % (parent, self.ident) - else: - ident = self.ident - return set(("%s.cc" % ident,)) + return set() def generate(self): types = [] -- cgit v1.2.3