diff options
author | Siva Chandra Reddy <sivachandra@sourceware.org> | 2013-01-25 22:31:43 +0000 |
---|---|---|
committer | Siva Chandra Reddy <sivachandra@sourceware.org> | 2013-01-25 22:31:43 +0000 |
commit | 28c64fc2c0e1232b1c2b962139ca11e690e7633c (patch) | |
tree | 14d79230f402fd34f9ad9c616958b3b1173f44b8 | |
parent | fab128efbbbbc9fca50b7421c28f3306c7deacbf (diff) | |
download | gdb-28c64fc2c0e1232b1c2b962139ca11e690e7633c.zip gdb-28c64fc2c0e1232b1c2b962139ca11e690e7633c.tar.gz gdb-28c64fc2c0e1232b1c2b962139ca11e690e7633c.tar.bz2 |
* valops.c (find_overload_match): Remove unused argument 'lax'.
* value.h: Remove unused argument 'lax' from the declaration of
find_overload_match.
* eval.c (value_subexp_standard): Do not pass a 'lax' argument
to find_overload_match.
* valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
argument to find_overload_match.
-rw-r--r-- | gdb/ChangeLog | 10 | ||||
-rw-r--r-- | gdb/eval.c | 3 | ||||
-rw-r--r-- | gdb/valarith.c | 2 | ||||
-rw-r--r-- | gdb/valops.c | 10 | ||||
-rw-r--r-- | gdb/value.h | 2 |
5 files changed, 16 insertions, 11 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d9377cc..1b04f69 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,13 @@ +2013-01-25 Siva Chandra Reddy <sivachandra@google.com> + + * valops.c (find_overload_match): Remove unused argument 'lax'. + * value.h: Remove unused argument 'lax' from the declaration of + find_overload_match. + * eval.c (value_subexp_standard): Do not pass a 'lax' argument + to find_overload_match. + * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax' + argument to find_overload_match. + 2013-01-25 Tom Tromey <tromey@redhat.com> * dwarf2read.c (processing_has_namespace_info): Remove. @@ -1590,7 +1590,6 @@ evaluate_subexp_standard (struct type *expect_type, find_overload_match (&argvec[1], nargs, func_name, NON_METHOD, /* not method */ - 0, /* strict match */ NULL, NULL, /* pass NULL symbol since symbol is unknown */ NULL, &symp, NULL, 0); @@ -1626,7 +1625,6 @@ evaluate_subexp_standard (struct type *expect_type, (void) find_overload_match (&argvec[1], nargs, tstr, METHOD, /* method */ - 0, /* strict match */ &arg2, /* the object */ NULL, &valp, NULL, &static_memfuncp, 0); @@ -1698,7 +1696,6 @@ evaluate_subexp_standard (struct type *expect_type, (void) find_overload_match (&argvec[1], nargs, NULL, /* no need for name */ NON_METHOD, /* not method */ - 0, /* strict match */ NULL, function, /* the function */ NULL, &symp, NULL, no_adl); diff --git a/gdb/valarith.c b/gdb/valarith.c index 894a87a..bdc98ff 100644 --- a/gdb/valarith.c +++ b/gdb/valarith.c @@ -294,7 +294,7 @@ value_user_defined_cpp_op (struct value **args, int nargs, char *operator, struct value *valp = NULL; find_overload_match (args, nargs, operator, BOTH /* could be method */, - 0 /* strict match */, &args[0], /* objp */ + &args[0] /* objp */, NULL /* pass NULL symbol since symbol is unknown */, &valp, &symp, static_memfuncp, 0); diff --git a/gdb/valops.c b/gdb/valops.c index b9bc460..5b2abf4 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -2516,11 +2516,9 @@ value_find_oload_method_list (struct value **argp, const char *method, /* Given an array of arguments (ARGS) (which includes an entry for "this" in the case of C++ methods), the number of - arguments NARGS, the NAME of a function whether it's a method or - not (METHOD), and the degree of laxness (LAX) in conforming to - overload resolution rules in ANSI C++, find the best function that - matches on the argument types according to the overload resolution - rules. + arguments NARGS, the NAME of a function, and whether it's a method or + not (METHOD), find the best function that matches on the argument types + according to the overload resolution rules. METHOD can be one of three values: NON_METHOD for non-member functions. @@ -2559,7 +2557,7 @@ value_find_oload_method_list (struct value **argp, const char *method, int find_overload_match (struct value **args, int nargs, const char *name, enum oload_search_type method, - int lax, struct value **objp, struct symbol *fsym, + struct value **objp, struct symbol *fsym, struct value **valp, struct symbol **symp, int *staticp, const int no_adl) { diff --git a/gdb/value.h b/gdb/value.h index 5825f6e..97ceeab 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -651,7 +651,7 @@ enum oload_search_type { NON_METHOD, METHOD, BOTH }; extern int find_overload_match (struct value **args, int nargs, const char *name, - enum oload_search_type method, int lax, + enum oload_search_type method, struct value **objp, struct symbol *fsym, struct value **valp, struct symbol **symp, int *staticp, const int no_adl); |