objc: remove ns_string/c_string helpers

ns_string's only caller was impl Into(*NSString) for string, so +stringWithUTF8String: is inlined there. c_string's one use (NSBundle.resourcePath in uikit) becomes rsrc.UTF8String() with resourcePath retyped *NSString. ffi-objc-call-06 and ffi-objc-dsl-07 .ir snapshots regenerated — they only drop the now-absent extern declares.
This commit is contained in:
agra
2026-05-30 18:01:27 +03:00
parent a29ede0383
commit fb8a5399f1
4 changed files with 16 additions and 42 deletions

View File

@@ -1945,12 +1945,6 @@ declare void @objc_registerClassPair(ptr) #0
; Function Attrs: nounwind
declare void @NSLog(ptr) #0
; Function Attrs: nounwind
declare ptr @ns_string(ptr, ptr) #0
; Function Attrs: nounwind
declare ptr @c_string(ptr, ptr) #0
; Function Attrs: nounwind
declare ptr @objc_autoreleasePoolPush() #0

View File

@@ -792,12 +792,6 @@ declare void @objc_registerClassPair(ptr) #0
; Function Attrs: nounwind
declare void @NSLog(ptr) #0
; Function Attrs: nounwind
declare ptr @ns_string(ptr, ptr) #0
; Function Attrs: nounwind
declare ptr @c_string(ptr, ptr) #0
; Function Attrs: nounwind
declare ptr @objc_autoreleasePoolPush() #0
@@ -960,3 +954,5 @@ entry:
store ptr %selN, ptr @OBJC_SELECTOR_REFERENCES_actualSelectorName, align 8
ret void
}