summaryrefslogtreecommitdiff
path: root/src/mem/slicc/ast/MethodCallExprAST.py
diff options
context:
space:
mode:
authorBrad Beckmann <Brad.Beckmann@amd.com>2009-10-26 17:06:32 -0700
committerBrad Beckmann <Brad.Beckmann@amd.com>2009-10-26 17:06:32 -0700
commit0fdfc82bde5b8975ee93d5da9c604ad9b99942e0 (patch)
treecc9bb4a3b75804928ce847a8c791e7c079b77a7c /src/mem/slicc/ast/MethodCallExprAST.py
parent1b2d75d6d276f316b8c3f40fa93901ab6233128f (diff)
downloadgem5-0fdfc82bde5b8975ee93d5da9c604ad9b99942e0.tar.xz
fixed error message generation bug in SLICC ast files
Diffstat (limited to 'src/mem/slicc/ast/MethodCallExprAST.py')
-rw-r--r--src/mem/slicc/ast/MethodCallExprAST.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mem/slicc/ast/MethodCallExprAST.py b/src/mem/slicc/ast/MethodCallExprAST.py
index ecfe43cdb..d423ee4a7 100644
--- a/src/mem/slicc/ast/MethodCallExprAST.py
+++ b/src/mem/slicc/ast/MethodCallExprAST.py
@@ -55,22 +55,22 @@ class MethodCallExprAST(ExprAST):
# Verify that this is a method of the object
if methodId not in obj_type.methods:
- error("Invalid method call: Type '%s' does not have a method '%s'",
- obj_type, methodId)
+ self.error("Invalid method call: Type '%s' does not have a method '%s'",
+ obj_type, methodId)
if len(self.expr_ast_vec) != \
len(obj_type.methods[methodId].param_types):
# Right number of parameters
- error("Wrong number of parameters for function name: '%s', " + \
- "expected: , actual: ", proc_name,
+ self.error("Wrong number of parameters for function name: '%s', " + \
+ "expected: , actual: ", proc_name,
len(obj_type.methods[methodId].param_types),
len(self.expr_ast_vec))
for actual_type, expected_type in \
zip(paramTypes, obj_type.methods[methodId].param_types):
if actual_type != expected_type:
- error("Type mismatch: expected: %s actual: %s",
- expected_type, actual_type)
+ self.error("Type mismatch: expected: %s actual: %s",
+ expected_type, actual_type)
# Return the return type of the method
return obj_type.methods[methodId].return_type