mirror of
https://gcc.gnu.org/git/gcc.git
synced 2024-11-25 03:44:04 +08:00
Ojective-C, Darwin : Adjust category superclass ref names (NFC).
Make the order of the class and superclass match the metadata order from clang. Makes it easier to compare produced meta- data between implementations. gcc/objc/ChangeLog: * objc-next-runtime-abi-02.c (next_runtime_abi_02_category_decl): Adjust category superclass name ordering.
This commit is contained in:
parent
6224a8aa1b
commit
1174b08b14
@ -980,9 +980,9 @@ next_runtime_abi_02_category_decl (tree klass)
|
||||
{
|
||||
tree decl;
|
||||
char buf[BUFSIZE];
|
||||
snprintf (buf, BUFSIZE, "_OBJC_Category_%s_on_%s",
|
||||
IDENTIFIER_POINTER (CLASS_SUPER_NAME (klass)),
|
||||
IDENTIFIER_POINTER (CLASS_NAME (klass)));
|
||||
snprintf (buf, BUFSIZE, "_OBJC_Category_%s_%s",
|
||||
IDENTIFIER_POINTER (CLASS_NAME (klass)),
|
||||
IDENTIFIER_POINTER (CLASS_SUPER_NAME (klass)));
|
||||
decl = start_var_decl (objc_v2_category_template, buf);
|
||||
OBJCMETA (decl, objc_meta, meta_category);
|
||||
return decl;
|
||||
|
Loading…
Reference in New Issue
Block a user