summaryrefslogtreecommitdiff
path: root/src/mem/slicc/ast
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2011-07-27 20:20:53 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2011-07-27 20:20:53 -0500
commitb4152e250da1999d7e495d5501f029f5370e01ed (patch)
tree8bf2afa6f6ecdf8a266f4000c4fd6f217ed4a4cf /src/mem/slicc/ast
parent00ad4eb8ce997466e1d537b0f0a3911de7842b4c (diff)
downloadgem5-b4152e250da1999d7e495d5501f029f5370e01ed.tar.xz
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.
Diffstat (limited to 'src/mem/slicc/ast')
-rw-r--r--src/mem/slicc/ast/FuncDeclAST.py9
1 files changed, 1 insertions, 8 deletions
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 = []