summaryrefslogtreecommitdiff
path: root/src/mem/slicc/ast/AST.py
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2011-07-05 18:30:05 -0700
committerNathan Binkert <nate@binkert.org>2011-07-05 18:30:05 -0700
commit831e9b3b7a658663f5bffafef175d4f4a5615cfd (patch)
treee2ac76e79b6e3f0f1fe5e5c471004c3e391dee2b /src/mem/slicc/ast/AST.py
parent3d252f8e5fa2ec3f55730ab6d5d1a4a1b21b2cdf (diff)
downloadgem5-831e9b3b7a658663f5bffafef175d4f4a5615cfd.tar.xz
slicc: cleanup slicc code and make it less verbose
Diffstat (limited to 'src/mem/slicc/ast/AST.py')
-rw-r--r--src/mem/slicc/ast/AST.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mem/slicc/ast/AST.py b/src/mem/slicc/ast/AST.py
index d098c8642..b74867114 100644
--- a/src/mem/slicc/ast/AST.py
+++ b/src/mem/slicc/ast/AST.py
@@ -30,7 +30,7 @@ from slicc.util import PairContainer, Location
class AST(PairContainer):
def __init__(self, slicc, pairs=None):
self.slicc = slicc
- self.location = Location(slicc.current_source, slicc.current_line)
+ self.location = slicc.currentLocation()
self.pairs = {}
if pairs:
self.pairs.update(getattr(pairs, "pairs", pairs))