[clang] ObjcRuntime.h: Add mips64, aarch64, and riscv64 to non-legacy dispatch (PR #76694)

David Chisnall via cfe-commits cfe-commits at lists.llvm.org
Tue Jan 2 02:51:03 PST 2024


================
@@ -101,10 +101,17 @@ class ObjCRuntime {
     // The GNUstep runtime uses a newer dispatch method by default from
     // version 1.6 onwards
     if (getKind() == GNUstep && getVersion() >= VersionTuple(1, 6)) {
-      if (Arch == llvm::Triple::arm ||
-          Arch == llvm::Triple::x86 ||
-          Arch == llvm::Triple::x86_64)
+      switch (Arch) {
----------------
davidchisnall wrote:

> This was my first approach, but it seems like GNUstep and libobjc2 unit tests are always emitting -fobjc-runtime=gnustep-2.0

That's fine.  We should bump that in both places to the correct version.  It's better than having the compiler emit things that are not supported when targeting a specific version of the runtime.

https://github.com/llvm/llvm-project/pull/76694


More information about the cfe-commits mailing list