summaryrefslogtreecommitdiff
path: root/src/mem/slicc/symbols/Var.py
diff options
context:
space:
mode:
authorNilay Vaish <nilay@cs.wisc.edu>2014-09-01 16:55:43 -0500
committerNilay Vaish <nilay@cs.wisc.edu>2014-09-01 16:55:43 -0500
commit557200725ccf98b50d9fd288e1eb0c5ffc7875ea (patch)
treee9b4a7de833120e79b1b149707a0647eb9641a85 /src/mem/slicc/symbols/Var.py
parent6ceb1aadc2d64576c4506657da6b3ba1b7a2d4ea (diff)
downloadgem5-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.py7
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