Brought back the @Used annotation processing.
This commit is contained in:
committed by
alexander-gorshenev
parent
4236bb22fb
commit
de41c5a71f
+4
@@ -69,6 +69,10 @@ internal inline fun<R> generateFunction(codegen: CodeGenerator,
|
||||
startLocation,
|
||||
endLocation,
|
||||
descriptor), code)
|
||||
|
||||
if (descriptor.usedAnnotation) {
|
||||
codegen.context.llvm.usedFunctions.add(llvmFunction)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
+1
-1
@@ -2465,4 +2465,4 @@ internal class CodeGeneratorVisitor(val context: Context, val lifetimes: Map<IrE
|
||||
|
||||
internal data class LocationInfo(val scope:DIScopeOpaqueRef?, val line:Int, val column:Int)
|
||||
|
||||
private fun IrFunction.hasNotReceiver() = this.extensionReceiverParameter == null && this.dispatchReceiverParameter == null
|
||||
private fun IrFunction.hasNotReceiver() = this.extensionReceiverParameter == null && this.dispatchReceiverParameter == null
|
||||
|
||||
Reference in New Issue
Block a user