diff options
author | Nilay Vaish <nilay@cs.wisc.edu> | 2014-09-01 16:55:43 -0500 |
---|---|---|
committer | Nilay Vaish <nilay@cs.wisc.edu> | 2014-09-01 16:55:43 -0500 |
commit | 557200725ccf98b50d9fd288e1eb0c5ffc7875ea (patch) | |
tree | e9b4a7de833120e79b1b149707a0647eb9641a85 /src/mem/slicc/symbols/Var.py | |
parent | 6ceb1aadc2d64576c4506657da6b3ba1b7a2d4ea (diff) | |
download | gem5-557200725ccf98b50d9fd288e1eb0c5ffc7875ea.tar.xz |
ruby: slicc: donot prefix machine name to variables
This changeset does away with prefixing of member variables of state machines
with the identity of the machine itself.
Diffstat (limited to 'src/mem/slicc/symbols/Var.py')
-rw-r--r-- | src/mem/slicc/symbols/Var.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/mem/slicc/symbols/Var.py b/src/mem/slicc/symbols/Var.py index e16199a1e..2a4ef23db 100644 --- a/src/mem/slicc/symbols/Var.py +++ b/src/mem/slicc/symbols/Var.py @@ -32,17 +32,12 @@ class Var(Symbol): machine=None): super(Var, self).__init__(symtab, ident, location, pairs) - if machine: - self.c_ident = "%s_%s" % (machine, ident) - else: - self.c_ident = ident - self.machine = machine self.type = type self.code = code def __repr__(self): - return "[Var id: %s]" % (self.c_ident) + return "[Var id: %s]" % (self.ident) def writeCodeFiles(self, path, includes): pass |