[K/N] More meaningful names in kotlin2objc bridges

This commit is contained in:
Sergey Bogolepov
2022-07-05 11:50:19 +03:00
committed by Space
parent 42c02c07b1
commit 730f9b4b91
@@ -1225,8 +1225,8 @@ private fun ObjCExportCodeGenerator.generateKotlinToObjCBridge(
val parameterToBase = irFunction.allParameters.zip(baseIrFunction.allParameters).toMap()
val functionType = LlvmFunctionSignature(irFunction, codegen)
val result = functionGenerator(functionType, "kotlin2objc").generate {
val functionName = "kotlin2objc_${baseIrFunction.computeSymbolName()}"
val result = functionGenerator(functionType, functionName).generate {
var errorOutPtr: LLVMValueRef? = null
val parameters = irFunction.allParameters.mapIndexed { index, parameterDescriptor ->
@@ -1432,7 +1432,7 @@ private fun ObjCExportCodeGenerator.generateKotlinToObjCBridge(
ret(retVal)
}
LLVMSetLinkage(result, LLVMLinkage.LLVMPrivateLinkage)
LLVMSetLinkage(result, LLVMLinkage.LLVMInternalLinkage)
return constPointer(result)
}