Brought back the @Used annotation processing.

This commit is contained in:
Alexander Gorshenev
2017-11-20 14:38:34 +03:00
committed by alexander-gorshenev
parent 4236bb22fb
commit de41c5a71f
2 changed files with 5 additions and 1 deletions
@@ -69,6 +69,10 @@ internal inline fun<R> generateFunction(codegen: CodeGenerator,
startLocation,
endLocation,
descriptor), code)
if (descriptor.usedAnnotation) {
codegen.context.llvm.usedFunctions.add(llvmFunction)
}
}
@@ -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