diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2011-07-27 20:20:53 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2011-07-27 20:20:53 -0500 |
commit | b4152e250da1999d7e495d5501f029f5370e01ed (patch) | |
tree | 8bf2afa6f6ecdf8a266f4000c4fd6f217ed4a4cf /src/mem/slicc/ast | |
parent | 00ad4eb8ce997466e1d537b0f0a3911de7842b4c (diff) | |
download | gem5-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.py | 9 |
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 = [] |