diff options
Diffstat (limited to 'gcc/java/class.c')
-rw-r--r-- | gcc/java/class.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gcc/java/class.c b/gcc/java/class.c index 8ecc1d902de..0a2dc3d5b2e 100644 --- a/gcc/java/class.c +++ b/gcc/java/class.c @@ -366,11 +366,11 @@ mangled_classname (const char *prefix, tree type) return result; } -tree +ttype * make_class (void) { - tree type; - type = make_node (RECORD_TYPE); + ttype *type; + type = make_type_node (RECORD_TYPE); /* Unfortunately we must create the binfo here, so that class loading works. */ TYPE_BINFO (type) = make_tree_binfo (0); @@ -508,13 +508,13 @@ push_class (tree class_type, tree class_name) Does not check if the class actually exists, load the class, fill in field or methods, or do layout_type. */ -tree +ttype * lookup_class (tree name) { tree decl = IDENTIFIER_CLASS_VALUE (name); if (decl == NULL_TREE) decl = push_class (make_class (), name); - return TREE_TYPE (decl); + return TREE_TTYPE (decl); } void |