Commit 66d88624 by Tom Tromey Committed by Tom Tromey

class.c (build_class_ref): Changed name of primitive classes to start with `_Jv_'.

	* class.c (build_class_ref): Changed name of primitive classes to
	start with `_Jv_'.

From-SVN: r23454
parent de82584d
1998-10-30 Tom Tromey <tromey@cygnus.com> 1998-10-30 Tom Tromey <tromey@cygnus.com>
* class.c (build_class_ref): Changed name of primitive classes to
start with `_Jv_'.
* class.c (make_class_data): Renamed fields: nmethods to * class.c (make_class_data): Renamed fields: nmethods to
method_count, method_count to dtable_method_count. Always set method_count, method_count to dtable_method_count. Always set
`state' field to 0. `state' field to 0.
......
...@@ -632,14 +632,14 @@ build_class_ref (type) ...@@ -632,14 +632,14 @@ build_class_ref (type)
else else
{ {
char *name; char *name;
char buffer[20]; char buffer[25];
decl_name = TYPE_NAME (type); decl_name = TYPE_NAME (type);
if (TREE_CODE (decl_name) == TYPE_DECL) if (TREE_CODE (decl_name) == TYPE_DECL)
decl_name = DECL_NAME (decl_name); decl_name = DECL_NAME (decl_name);
name = IDENTIFIER_POINTER (decl_name); name = IDENTIFIER_POINTER (decl_name);
if (strncmp (name, "promoted_", 9) == 0) if (strncmp (name, "promoted_", 9) == 0)
name += 9; name += 9;
sprintf (buffer, "%sClass", name); sprintf (buffer, "_Jv_%sClass", name);
decl_name = get_identifier (buffer); decl_name = get_identifier (buffer);
decl = IDENTIFIER_GLOBAL_VALUE (decl_name); decl = IDENTIFIER_GLOBAL_VALUE (decl_name);
if (decl == NULL_TREE) if (decl == NULL_TREE)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment