summaryrefslogtreecommitdiff
path: root/gdb/m2-typeprint.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2009-07-02 12:16:56 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2009-07-02 12:16:56 +0000
commitd5c831bd769fa23e1f0d6c7e9ac9efbad0f84a6d (patch)
tree8b48b915f4e099da3f415ce11419d4e19b069cd1 /gdb/m2-typeprint.c
parent5d3729b5d11ada0b369a965d4dcb40ace00e8d84 (diff)
downloadbinutils-gdb-d5c831bd769fa23e1f0d6c7e9ac9efbad0f84a6d.tar.gz
* m2-typeprint.c (m2_print_bounds, m2_is_long_set_of_type): Remove
redundant check for NULL TYPE_TARGET_TYPE. * m2-valprint.c (m2_print_long_set): Likewise. * p-valprint.c (pascal_type_print_base): Likewise.
Diffstat (limited to 'gdb/m2-typeprint.c')
-rw-r--r--gdb/m2-typeprint.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/gdb/m2-typeprint.c b/gdb/m2-typeprint.c
index 162ef9fbcdc..8c5d6b4c592 100644
--- a/gdb/m2-typeprint.c
+++ b/gdb/m2-typeprint.c
@@ -307,9 +307,6 @@ m2_print_bounds (struct type *type,
{
struct type *target = TYPE_TARGET_TYPE (type);
- if (target == NULL)
- target = builtin_type_int32;
-
if (TYPE_NFIELDS(type) == 0)
return;
@@ -414,8 +411,6 @@ m2_is_long_set_of_type (struct type *type, struct type **of_type)
return 0;
range = TYPE_INDEX_TYPE (TYPE_FIELD_TYPE (type, i));
target = TYPE_TARGET_TYPE (range);
- if (target == NULL)
- target = builtin_type_int32;
l1 = TYPE_LOW_BOUND (TYPE_INDEX_TYPE (TYPE_FIELD_TYPE (type, i)));
h1 = TYPE_HIGH_BOUND (TYPE_INDEX_TYPE (TYPE_FIELD_TYPE (type, len-1)));