diff options
author | Brad Beckmann <Brad.Beckmann@amd.com> | 2009-10-26 17:06:32 -0700 |
---|---|---|
committer | Brad Beckmann <Brad.Beckmann@amd.com> | 2009-10-26 17:06:32 -0700 |
commit | 0fdfc82bde5b8975ee93d5da9c604ad9b99942e0 (patch) | |
tree | cc9bb4a3b75804928ce847a8c791e7c079b77a7c /src/mem/slicc/ast/ChipComponentAccessAST.py | |
parent | 1b2d75d6d276f316b8c3f40fa93901ab6233128f (diff) | |
download | gem5-0fdfc82bde5b8975ee93d5da9c604ad9b99942e0.tar.xz |
fixed error message generation bug in SLICC ast files
Diffstat (limited to 'src/mem/slicc/ast/ChipComponentAccessAST.py')
-rw-r--r-- | src/mem/slicc/ast/ChipComponentAccessAST.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mem/slicc/ast/ChipComponentAccessAST.py b/src/mem/slicc/ast/ChipComponentAccessAST.py index 841220c94..bbb1b61e9 100644 --- a/src/mem/slicc/ast/ChipComponentAccessAST.py +++ b/src/mem/slicc/ast/ChipComponentAccessAST.py @@ -85,8 +85,8 @@ class ChipMethodAccessAST(ChipComponentAccessAST): # Verify that this is a method of the object if not var.type.methodExist(methodId): - error("%s: Type '%s' does not have a method '%s'" % \ - ("Invalid method call", var.type, methodId)) + self.error("%s: Type '%s' does not have a method '%s'" % \ + ("Invalid method call", var.type, methodId)) expected_size = len(var.type.methodParamType(methodId)) if len(self.expr_vec) != expected_size: |