Moved Konan specific annotation "@Used" to "konan" package.

This commit is contained in:
Alexander Gorshenev
2016-11-30 15:36:30 +03:00
committed by alexander-gorshenev
parent bd5b4b2f52
commit b2983850b6
4 changed files with 10 additions and 7 deletions
@@ -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
@@ -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