Moved Konan specific annotation "@Used" to "konan" package.
This commit is contained in:
committed by
alexander-gorshenev
parent
bd5b4b2f52
commit
b2983850b6
+2
-1
@@ -36,7 +36,8 @@ class KonanBuiltIns: KotlinBuiltIns {
|
||||
object KonanPlatform : TargetPlatform("Konan") {
|
||||
override val defaultImports: List<ImportPath> = Default.defaultImports + listOf(
|
||||
ImportPath("kotlin.*"),
|
||||
ImportPath("kotlin.io.*")
|
||||
ImportPath("kotlin.io.*"),
|
||||
ImportPath("konan.*")
|
||||
)
|
||||
|
||||
override val platformConfigurator: PlatformConfigurator = KonanPlatformConfigurator
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ import org.jetbrains.kotlin.descriptors.FunctionDescriptor
|
||||
import org.jetbrains.kotlin.descriptors.annotations.*
|
||||
import org.jetbrains.kotlin.name.FqName
|
||||
|
||||
private val annotationName = FqName("kotlin.Used")
|
||||
private val annotationName = FqName("konan.Used")
|
||||
|
||||
internal val FunctionDescriptor.usedAnnotation: Boolean
|
||||
get() {
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
package konan
|
||||
|
||||
/**
|
||||
* Preserve the function entry point during global optimizations
|
||||
*/
|
||||
public annotation class Used
|
||||
|
||||
@@ -36,8 +36,3 @@ public annotation class Suppress(vararg val names: String)
|
||||
//@MustBeDocumented
|
||||
public annotation class UnsafeVariance
|
||||
|
||||
/**
|
||||
* Preserve the function entry point during global optimizations
|
||||
*/
|
||||
public annotation class Used
|
||||
|
||||
|
||||
Reference in New Issue
Block a user