diff options
author | Stan Shebs <shebs@apple.com> | 2001-12-29 16:16:51 +0000 |
---|---|---|
committer | Stan Shebs <shebs@gcc.gnu.org> | 2001-12-29 16:16:51 +0000 |
commit | 1bf0567179b2828650b21eced842742526039651 (patch) | |
tree | 324c2efd1cbbcec1389487eb6a5de3713aee3c10 /gcc/objc | |
parent | ad074d60dd99324d514d31a4b3d9152b897f0488 (diff) | |
download | gcc-1bf0567179b2828650b21eced842742526039651.tar.gz |
objc-act.c (STRING_OBJECT_CLASS_NAME): Remove.
* objc/objc-act.c (STRING_OBJECT_CLASS_NAME): Remove.
(default_constant_string_class_name): New global.
(objc_init): Set it.
(synth_module_prologue): Use it.
From-SVN: r48366
Diffstat (limited to 'gcc/objc')
-rw-r--r-- | gcc/objc/objc-act.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gcc/objc/objc-act.c b/gcc/objc/objc-act.c index d6cc5eaba92..d7c7e740d8e 100644 --- a/gcc/objc/objc-act.c +++ b/gcc/objc/objc-act.c @@ -363,11 +363,6 @@ static void ggc_mark_hash_table PARAMS ((void *)); #define UTAG_METHOD_PROTOTYPE "_objc_method_prototype" #define UTAG_METHOD_PROTOTYPE_LIST "_objc__method_prototype_list" -#ifdef NEXT_OBJC_RUNTIME -#define STRING_OBJECT_CLASS_NAME "NSConstantString" -#else -#define STRING_OBJECT_CLASS_NAME "NXConstantString" -#endif /* Note that the string object global name is only needed for the NeXT runtime. */ #define STRING_OBJECT_GLOBAL_NAME "_NSConstantStringClassReference" @@ -381,6 +376,7 @@ static const char *TAG_GETMETACLASS; static const char *TAG_MSGSEND; static const char *TAG_MSGSENDSUPER; static const char *TAG_EXECCLASS; +static const char *default_constant_string_class_name; /* The OCTI_... enumeration itself is in objc/objc-act.h. */ tree objc_global_trees[OCTI_MAX]; @@ -541,6 +537,7 @@ objc_init (filename) TAG_MSGSEND = "objc_msgSend"; TAG_MSGSENDSUPER = "objc_msgSendSuper"; TAG_EXECCLASS = "__objc_execClass"; + default_constant_string_class_name = "NSConstantString"; } else { @@ -549,6 +546,7 @@ objc_init (filename) TAG_MSGSEND = "objc_msg_lookup"; TAG_MSGSENDSUPER = "objc_msg_lookup_super"; TAG_EXECCLASS = "__objc_exec_class"; + default_constant_string_class_name = "NXConstantString"; flag_typed_selectors = 1; } @@ -1204,7 +1202,7 @@ synth_module_prologue () /* Forward declare constant_string_id and constant_string_type. */ if (!constant_string_class_name) - constant_string_class_name = STRING_OBJECT_CLASS_NAME; + constant_string_class_name = default_constant_string_class_name; constant_string_id = get_identifier (constant_string_class_name); constant_string_type = xref_tag (RECORD_TYPE, constant_string_id); |