diff options
author | Nathan Binkert <nate@binkert.org> | 2010-03-12 18:42:56 -0800 |
---|---|---|
committer | Nathan Binkert <nate@binkert.org> | 2010-03-12 18:42:56 -0800 |
commit | 0bbf63f17a636ffbfcfae4ea20fc306c145bc3a3 (patch) | |
tree | 0ee50c6840a06894ce39b2b863f775058b80e2d2 /src/mem/slicc/symbols/Func.py | |
parent | c8f296bca08a34947cf020046964a888b66acbb5 (diff) | |
download | gem5-0bbf63f17a636ffbfcfae4ea20fc306c145bc3a3.tar.xz |
slicc: Change the code generation so that the generated code is easier to read
Diffstat (limited to 'src/mem/slicc/symbols/Func.py')
-rw-r--r-- | src/mem/slicc/symbols/Func.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mem/slicc/symbols/Func.py b/src/mem/slicc/symbols/Func.py index a05f0a03b..459cca52a 100644 --- a/src/mem/slicc/symbols/Func.py +++ b/src/mem/slicc/symbols/Func.py @@ -95,7 +95,8 @@ class Func(Symbol): params = ', '.join(self.param_strings) code(''' -$return_type ${klass}::${{self.c_ident}}($params) +$return_type +${klass}::${{self.c_ident}}($params) { ${{self.body}} } |