From 9cc6000237183eebf283b54e44d8a01d4284de43 Mon Sep 17 00:00:00 2001 From: Svyatoslav Scherbina Date: Fri, 22 Mar 2019 16:55:26 +0300 Subject: [PATCH] Fix binary compatibility with Objective-C platform libraries by removing obsolete hack. --- .../kotlin/backend/konan/llvm/BinaryInterface.kt | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/BinaryInterface.kt b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/BinaryInterface.kt index 8a3a613e435..f9b0214fa0e 100644 --- a/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/BinaryInterface.kt +++ b/backend.native/compiler/ir/backend.native/src/org/jetbrains/kotlin/backend/konan/llvm/BinaryInterface.kt @@ -105,19 +105,6 @@ object KonanMangler : KotlinManglerImpl() { if ((this@platformSpecificFunctionName as? IrSimpleFunction)?.correspondingProperty != null) { append("#Accessor") } - - // We happen to have the clashing combinations such as - //@ObjCMethod("issueChallengeToPlayers:message:", "objcKniBridge1165") - //external fun GKScore.issueChallengeToPlayers(playerIDs: List<*>?, message: String?): Unit - //@ObjCMethod("issueChallengeToPlayers:message:", "objcKniBridge1172") - //external fun GKScore.issueChallengeToPlayers(playerIDs: List<*>?, message: String?): Unit - // So disambiguate by the name of the bridge for now. - // TODO: idealy we'd never generate such identical declarations. - - if (this@platformSpecificFunctionName is IrSimpleFunction && this@platformSpecificFunctionName.hasObjCMethodAnnotation()) { - this@platformSpecificFunctionName.objCMethodArgValue("selector")?.let { append("#$it") } - this@platformSpecificFunctionName.objCMethodArgValue("bridge")?.let { append("#$it") } - } } } return null