aboutsummaryrefslogtreecommitdiff
path: root/gcc/objc
diff options
context:
space:
mode:
authorIain Sandoe <iain@sandoe.co.uk>2020-10-10 22:21:05 +0100
committerIain Sandoe <iain@sandoe.co.uk>2020-10-11 11:33:25 +0100
commit1174b08b140d1fed6012d7dcf66165fabd49b7e5 (patch)
tree569445860380f2da4b4fcf000c46df1fb2115262 /gcc/objc
parent6224a8aa1ba46218fac36266b9cd2a746d0a4a66 (diff)
downloadgcc-1174b08b140d1fed6012d7dcf66165fabd49b7e5.zip
gcc-1174b08b140d1fed6012d7dcf66165fabd49b7e5.tar.gz
gcc-1174b08b140d1fed6012d7dcf66165fabd49b7e5.tar.bz2
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.
Diffstat (limited to 'gcc/objc')
-rw-r--r--gcc/objc/objc-next-runtime-abi-02.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/objc/objc-next-runtime-abi-02.c b/gcc/objc/objc-next-runtime-abi-02.c
index 3a30897..92ede03 100644
--- a/gcc/objc/objc-next-runtime-abi-02.c
+++ b/gcc/objc/objc-next-runtime-abi-02.c
@@ -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;