[llvm-branch-commits] [lld] [lld][MachO] Support Objective-C class selector stubs (PR #219744)

Zhaoxuan Jiang via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Fri Oct 30 00:51:10 PDT 2026


https://github.com/nocchijiang commented:

Have you considered emitting the class stub as a tail call into the ordinary selector stub instead of duplicating its body?

```
_objc_msgSendClass$alloc$_OBJC_CLASS_$_Foo:
  adrp x0, _OBJC_CLASS_$_Foo at PAGE
  add  x0, x0, _OBJC_CLASS_$_Foo at PAGEOFF
  b    _objc_msgSend$alloc
```

Not blocking, just curious whether you evaluated it.

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


More information about the llvm-branch-commits mailing list