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:
@@ -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
|
||||
|
||||
|
||||
@@ -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
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user