aboutsummaryrefslogtreecommitdiff
path: root/gdb/value.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2008-09-11 14:16:14 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2008-09-11 14:16:14 +0000
commit0ab7ba45fa26e78626617b4d90725fc921c74f69 (patch)
treed6297abeb32140db80712332093d7dbc9f6118e6 /gdb/value.c
parentf7c79c4197b4e8003d9c9828b2e22df6444c5860 (diff)
downloadgdb-0ab7ba45fa26e78626617b4d90725fc921c74f69.zip
gdb-0ab7ba45fa26e78626617b4d90725fc921c74f69.tar.gz
gdb-0ab7ba45fa26e78626617b4d90725fc921c74f69.tar.bz2
* value.h (coerce_enum, coerce_number): Remove prototypes.
* value.c (coerce_enum, coerce_number): Remove. * valarith.c (value_x_binop): Do not call coerce_enum. (value_x_unop): Likewise. (value_logical_not): Call coerce_array instead of coerce_number.
Diffstat (limited to 'gdb/value.c')
-rw-r--r--gdb/value.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/gdb/value.c b/gdb/value.c
index b38bae0..c0e6c99 100644
--- a/gdb/value.c
+++ b/gdb/value.c
@@ -1700,22 +1700,6 @@ coerce_array (struct value *arg)
arg = value_coerce_function (arg);
return arg;
}
-
-struct value *
-coerce_number (struct value *arg)
-{
- arg = coerce_array (arg);
- arg = coerce_enum (arg);
- return arg;
-}
-
-struct value *
-coerce_enum (struct value *arg)
-{
- if (TYPE_CODE (check_typedef (value_type (arg))) == TYPE_CODE_ENUM)
- arg = value_cast (builtin_type_unsigned_int, arg);
- return arg;
-}
/* Return true if the function returning the specified type is using