[lld] [lld-macho] Category merger: handle addends when getting symbol at offset (PR #91238)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 24 06:52:41 PDT 2024
================
@@ -0,0 +1,357 @@
+# REQUIRES: aarch64
+# RUN: rm -rf %t; mkdir %t && cd %t
+
+############ Test merging multiple categories into a single category ############
+## Apply category merging to swiftc code just make sure we can handle addends
+## and don't erase cateogry names for swift -- in order to not crash
+# RUN: llvm-mc -filetype=obj -triple=arm64-apple-macos -o cat_swift.o %s
+# RUN: %lld -arch arm64 -dylib -o cat_swift.dylib cat_swift.o -objc_category_merging
+
+; ================== Generated from Swift: ==================
+;; > xcrun swiftc -S SimpleClass.swift -o SimpleClass.s
----------------
alx32 wrote:
I added the below - is that what you mean ? It's XCode16 Beta 1.
```
;; > xcrun swiftc --version
;; swift-driver version: 1.109.2 Apple Swift version 6.0 (swiftlang-6.0.0.3.300 clang-1600.0.20.10)
```
https://github.com/llvm/llvm-project/pull/91238
More information about the llvm-commits
mailing list