mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-04-16 18:40:57 +08:00
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
This commit is contained in:
parent
de82584de7
commit
66d88624a9
@ -1,5 +1,8 @@
|
||||
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
|
||||
method_count, method_count to dtable_method_count. Always set
|
||||
`state' field to 0.
|
||||
|
@ -632,14 +632,14 @@ build_class_ref (type)
|
||||
else
|
||||
{
|
||||
char *name;
|
||||
char buffer[20];
|
||||
char buffer[25];
|
||||
decl_name = TYPE_NAME (type);
|
||||
if (TREE_CODE (decl_name) == TYPE_DECL)
|
||||
decl_name = DECL_NAME (decl_name);
|
||||
name = IDENTIFIER_POINTER (decl_name);
|
||||
if (strncmp (name, "promoted_", 9) == 0)
|
||||
name += 9;
|
||||
sprintf (buffer, "%sClass", name);
|
||||
sprintf (buffer, "_Jv_%sClass", name);
|
||||
decl_name = get_identifier (buffer);
|
||||
decl = IDENTIFIER_GLOBAL_VALUE (decl_name);
|
||||
if (decl == NULL_TREE)
|
||||
|
Loading…
x
Reference in New Issue
Block a user