Review feedback: move kotlin_.cinterop package to kotlinx
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
package clang
|
package clang
|
||||||
|
|
||||||
import kotlin_.cinterop.*
|
import kotlinx.cinterop.*
|
||||||
|
|
||||||
fun asctime(arg0: CPointer<tm>?): CPointer<CInt8Var>? {
|
fun asctime(arg0: CPointer<tm>?): CPointer<CInt8Var>? {
|
||||||
val _arg0 = arg0.rawValue
|
val _arg0 = arg0.rawValue
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@ package org.jetbrains.kotlin.native.interop.indexer
|
|||||||
import clang.*
|
import clang.*
|
||||||
import clang.CXIdxEntityKind.*
|
import clang.CXIdxEntityKind.*
|
||||||
import clang.CXTypeKind.*
|
import clang.CXTypeKind.*
|
||||||
import kotlin_.cinterop.*
|
import kotlinx.cinterop.*
|
||||||
import java.io.File
|
import java.io.File
|
||||||
|
|
||||||
private class StructDeclImpl(spelling: String) : StructDecl(spelling) {
|
private class StructDeclImpl(spelling: String) : StructDecl(spelling) {
|
||||||
|
|||||||
@@ -4,101 +4,101 @@
|
|||||||
#include <ffi.h>
|
#include <ffi.h>
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Class: kotlin__cinterop_JvmCallbacksKt
|
* Class: kotlinx_cinterop_JvmCallbacksKt
|
||||||
* Method: ffiTypeVoid
|
* Method: ffiTypeVoid
|
||||||
* Signature: ()J
|
* Signature: ()J
|
||||||
*/
|
*/
|
||||||
JNIEXPORT jlong JNICALL Java_kotlin_1_cinterop_JvmCallbacksKt_ffiTypeVoid(JNIEnv *env, jclass cls) {
|
JNIEXPORT jlong JNICALL Java_kotlinx_cinterop_JvmCallbacksKt_ffiTypeVoid(JNIEnv *env, jclass cls) {
|
||||||
return (jlong) &ffi_type_void;
|
return (jlong) &ffi_type_void;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Class: kotlin__cinterop_JvmCallbacksKt
|
* Class: kotlinx_cinterop_JvmCallbacksKt
|
||||||
* Method: ffiTypeUInt8
|
* Method: ffiTypeUInt8
|
||||||
* Signature: ()J
|
* Signature: ()J
|
||||||
*/
|
*/
|
||||||
JNIEXPORT jlong JNICALL Java_kotlin_1_cinterop_JvmCallbacksKt_ffiTypeUInt8(JNIEnv *env, jclass cls) {
|
JNIEXPORT jlong JNICALL Java_kotlinx_cinterop_JvmCallbacksKt_ffiTypeUInt8(JNIEnv *env, jclass cls) {
|
||||||
return (jlong) &ffi_type_uint8;
|
return (jlong) &ffi_type_uint8;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Class: kotlin__cinterop_JvmCallbacksKt
|
* Class: kotlinx_cinterop_JvmCallbacksKt
|
||||||
* Method: ffiTypeSInt8
|
* Method: ffiTypeSInt8
|
||||||
* Signature: ()J
|
* Signature: ()J
|
||||||
*/
|
*/
|
||||||
JNIEXPORT jlong JNICALL Java_kotlin_1_cinterop_JvmCallbacksKt_ffiTypeSInt8(JNIEnv *env, jclass cls) {
|
JNIEXPORT jlong JNICALL Java_kotlinx_cinterop_JvmCallbacksKt_ffiTypeSInt8(JNIEnv *env, jclass cls) {
|
||||||
return (jlong) &ffi_type_sint8;
|
return (jlong) &ffi_type_sint8;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Class: kotlin__cinterop_JvmCallbacksKt
|
* Class: kotlinx_cinterop_JvmCallbacksKt
|
||||||
* Method: ffiTypeUInt16
|
* Method: ffiTypeUInt16
|
||||||
* Signature: ()J
|
* Signature: ()J
|
||||||
*/
|
*/
|
||||||
JNIEXPORT jlong JNICALL Java_kotlin_1_cinterop_JvmCallbacksKt_ffiTypeUInt16(JNIEnv *env, jclass cls) {
|
JNIEXPORT jlong JNICALL Java_kotlinx_cinterop_JvmCallbacksKt_ffiTypeUInt16(JNIEnv *env, jclass cls) {
|
||||||
return (jlong) &ffi_type_uint16;
|
return (jlong) &ffi_type_uint16;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Class: kotlin__cinterop_JvmCallbacksKt
|
* Class: kotlinx_cinterop_JvmCallbacksKt
|
||||||
* Method: ffiTypeSInt16
|
* Method: ffiTypeSInt16
|
||||||
* Signature: ()J
|
* Signature: ()J
|
||||||
*/
|
*/
|
||||||
JNIEXPORT jlong JNICALL Java_kotlin_1_cinterop_JvmCallbacksKt_ffiTypeSInt16(JNIEnv *env, jclass cls) {
|
JNIEXPORT jlong JNICALL Java_kotlinx_cinterop_JvmCallbacksKt_ffiTypeSInt16(JNIEnv *env, jclass cls) {
|
||||||
return (jlong) &ffi_type_sint16;
|
return (jlong) &ffi_type_sint16;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Class: kotlin__cinterop_JvmCallbacksKt
|
* Class: kotlinx_cinterop_JvmCallbacksKt
|
||||||
* Method: ffiTypeUInt32
|
* Method: ffiTypeUInt32
|
||||||
* Signature: ()J
|
* Signature: ()J
|
||||||
*/
|
*/
|
||||||
JNIEXPORT jlong JNICALL Java_kotlin_1_cinterop_JvmCallbacksKt_ffiTypeUInt32(JNIEnv *env, jclass cls) {
|
JNIEXPORT jlong JNICALL Java_kotlinx_cinterop_JvmCallbacksKt_ffiTypeUInt32(JNIEnv *env, jclass cls) {
|
||||||
return (jlong) &ffi_type_uint32;
|
return (jlong) &ffi_type_uint32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Class: kotlin__cinterop_JvmCallbacksKt
|
* Class: kotlinx_cinterop_JvmCallbacksKt
|
||||||
* Method: ffiTypeSInt32
|
* Method: ffiTypeSInt32
|
||||||
* Signature: ()J
|
* Signature: ()J
|
||||||
*/
|
*/
|
||||||
JNIEXPORT jlong JNICALL Java_kotlin_1_cinterop_JvmCallbacksKt_ffiTypeSInt32(JNIEnv *env, jclass cls) {
|
JNIEXPORT jlong JNICALL Java_kotlinx_cinterop_JvmCallbacksKt_ffiTypeSInt32(JNIEnv *env, jclass cls) {
|
||||||
return (jlong) &ffi_type_sint32;
|
return (jlong) &ffi_type_sint32;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Class: kotlin__cinterop_JvmCallbacksKt
|
* Class: kotlinx_cinterop_JvmCallbacksKt
|
||||||
* Method: ffiTypeUInt64
|
* Method: ffiTypeUInt64
|
||||||
* Signature: ()J
|
* Signature: ()J
|
||||||
*/
|
*/
|
||||||
JNIEXPORT jlong JNICALL Java_kotlin_1_cinterop_JvmCallbacksKt_ffiTypeUInt64(JNIEnv *env, jclass cls) {
|
JNIEXPORT jlong JNICALL Java_kotlinx_cinterop_JvmCallbacksKt_ffiTypeUInt64(JNIEnv *env, jclass cls) {
|
||||||
return (jlong) &ffi_type_uint64;
|
return (jlong) &ffi_type_uint64;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Class: kotlin__cinterop_JvmCallbacksKt
|
* Class: kotlinx_cinterop_JvmCallbacksKt
|
||||||
* Method: ffiTypeSInt64
|
* Method: ffiTypeSInt64
|
||||||
* Signature: ()J
|
* Signature: ()J
|
||||||
*/
|
*/
|
||||||
JNIEXPORT jlong JNICALL Java_kotlin_1_cinterop_JvmCallbacksKt_ffiTypeSInt64(JNIEnv *env, jclass cls) {
|
JNIEXPORT jlong JNICALL Java_kotlinx_cinterop_JvmCallbacksKt_ffiTypeSInt64(JNIEnv *env, jclass cls) {
|
||||||
return (jlong) &ffi_type_sint64;
|
return (jlong) &ffi_type_sint64;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Class: kotlin__cinterop_JvmCallbacksKt
|
* Class: kotlinx_cinterop_JvmCallbacksKt
|
||||||
* Method: ffiTypePointer
|
* Method: ffiTypePointer
|
||||||
* Signature: ()J
|
* Signature: ()J
|
||||||
*/
|
*/
|
||||||
JNIEXPORT jlong JNICALL Java_kotlin_1_cinterop_JvmCallbacksKt_ffiTypePointer(JNIEnv *env, jclass cls) {
|
JNIEXPORT jlong JNICALL Java_kotlinx_cinterop_JvmCallbacksKt_ffiTypePointer(JNIEnv *env, jclass cls) {
|
||||||
return (jlong) &ffi_type_pointer;
|
return (jlong) &ffi_type_pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Class: kotlin__cinterop_JvmCallbacksKt
|
* Class: kotlinx_cinterop_JvmCallbacksKt
|
||||||
* Method: ffiTypeStruct0
|
* Method: ffiTypeStruct0
|
||||||
* Signature: (J)J
|
* Signature: (J)J
|
||||||
*/
|
*/
|
||||||
JNIEXPORT jlong JNICALL Java_kotlin_1_cinterop_JvmCallbacksKt_ffiTypeStruct0(JNIEnv *env, jclass cls, jlong elements) {
|
JNIEXPORT jlong JNICALL Java_kotlinx_cinterop_JvmCallbacksKt_ffiTypeStruct0(JNIEnv *env, jclass cls, jlong elements) {
|
||||||
ffi_type* res = malloc(sizeof(ffi_type));
|
ffi_type* res = malloc(sizeof(ffi_type));
|
||||||
if (res != NULL) {
|
if (res != NULL) {
|
||||||
res->size = 0;
|
res->size = 0;
|
||||||
@@ -110,11 +110,11 @@ JNIEXPORT jlong JNICALL Java_kotlin_1_cinterop_JvmCallbacksKt_ffiTypeStruct0(JNI
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Class: kotlin__cinterop_JvmCallbacksKt
|
* Class: kotlinx_cinterop_JvmCallbacksKt
|
||||||
* Method: ffiCreateCif0
|
* Method: ffiCreateCif0
|
||||||
* Signature: (IJJ)J
|
* Signature: (IJJ)J
|
||||||
*/
|
*/
|
||||||
JNIEXPORT jlong JNICALL Java_kotlin_1_cinterop_JvmCallbacksKt_ffiCreateCif0(JNIEnv *env, jclass cls, jint nArgs, jlong rType, jlong argTypes) {
|
JNIEXPORT jlong JNICALL Java_kotlinx_cinterop_JvmCallbacksKt_ffiCreateCif0(JNIEnv *env, jclass cls, jint nArgs, jlong rType, jlong argTypes) {
|
||||||
ffi_cif* res = malloc(sizeof(ffi_cif));
|
ffi_cif* res = malloc(sizeof(ffi_cif));
|
||||||
if (res != NULL) {
|
if (res != NULL) {
|
||||||
ffi_status status = ffi_prep_cif(res, FFI_DEFAULT_ABI, nArgs, (ffi_type*)rType, (ffi_type**)argTypes);
|
ffi_status status = ffi_prep_cif(res, FFI_DEFAULT_ABI, nArgs, (ffi_type*)rType, (ffi_type**)argTypes);
|
||||||
@@ -166,7 +166,7 @@ static void ffi_fun(ffi_cif *cif, void *ret, void **args, void *user_data) {
|
|||||||
static jmethodID ffiFunImpl0 = NULL;
|
static jmethodID ffiFunImpl0 = NULL;
|
||||||
static jclass cls = NULL;
|
static jclass cls = NULL;
|
||||||
if (ffiFunImpl0 == NULL) {
|
if (ffiFunImpl0 == NULL) {
|
||||||
jclass clsLocal = (*env)->FindClass(env, "kotlin_/cinterop/JvmCallbacksKt");
|
jclass clsLocal = (*env)->FindClass(env, "kotlinx/cinterop/JvmCallbacksKt");
|
||||||
checkException(env);
|
checkException(env);
|
||||||
assert(clsLocal != NULL);
|
assert(clsLocal != NULL);
|
||||||
|
|
||||||
@@ -184,11 +184,11 @@ static void ffi_fun(ffi_cif *cif, void *ret, void **args, void *user_data) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Class: kotlin__cinterop_JvmCallbacksKt
|
* Class: kotlinx_cinterop_JvmCallbacksKt
|
||||||
* Method: ffiCreateClosure0
|
* Method: ffiCreateClosure0
|
||||||
* Signature: (JLjava/lang/Object;)J
|
* Signature: (JLjava/lang/Object;)J
|
||||||
*/
|
*/
|
||||||
JNIEXPORT jlong JNICALL Java_kotlin_1_cinterop_JvmCallbacksKt_ffiCreateClosure0(JNIEnv *env, jclass cls, jlong ffiCif, jobject userData) {
|
JNIEXPORT jlong JNICALL Java_kotlinx_cinterop_JvmCallbacksKt_ffiCreateClosure0(JNIEnv *env, jclass cls, jlong ffiCif, jobject userData) {
|
||||||
jobject userDataGlobalRef = (*env)->NewGlobalRef(env, userData);
|
jobject userDataGlobalRef = (*env)->NewGlobalRef(env, userData);
|
||||||
if (userDataGlobalRef == NULL) {
|
if (userDataGlobalRef == NULL) {
|
||||||
return (jlong)0;
|
return (jlong)0;
|
||||||
@@ -211,29 +211,29 @@ JNIEXPORT jlong JNICALL Java_kotlin_1_cinterop_JvmCallbacksKt_ffiCreateClosure0(
|
|||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Class: kotlin__cinterop_JvmCallbacksKt
|
* Class: kotlinx_cinterop_JvmCallbacksKt
|
||||||
* Method: newGlobalRef
|
* Method: newGlobalRef
|
||||||
* Signature: (Ljava/lang/Object;)J
|
* Signature: (Ljava/lang/Object;)J
|
||||||
*/
|
*/
|
||||||
JNIEXPORT jlong JNICALL Java_kotlin_1_cinterop_JvmCallbacksKt_newGlobalRef(JNIEnv *env, jclass cls, jobject obj) {
|
JNIEXPORT jlong JNICALL Java_kotlinx_cinterop_JvmCallbacksKt_newGlobalRef(JNIEnv *env, jclass cls, jobject obj) {
|
||||||
jobject res = (*env)->NewGlobalRef(env, obj);
|
jobject res = (*env)->NewGlobalRef(env, obj);
|
||||||
return (jlong) res;
|
return (jlong) res;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Class: kotlin__cinterop_JvmCallbacksKt
|
* Class: kotlinx_cinterop_JvmCallbacksKt
|
||||||
* Method: derefGlobalRef
|
* Method: derefGlobalRef
|
||||||
* Signature: (J)Ljava/lang/Object;
|
* Signature: (J)Ljava/lang/Object;
|
||||||
*/
|
*/
|
||||||
JNIEXPORT jobject JNICALL Java_kotlin_1_cinterop_JvmCallbacksKt_derefGlobalRef(JNIEnv *env, jclass cls, jlong ref) {
|
JNIEXPORT jobject JNICALL Java_kotlinx_cinterop_JvmCallbacksKt_derefGlobalRef(JNIEnv *env, jclass cls, jlong ref) {
|
||||||
return (jobject) ref;
|
return (jobject) ref;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Class: kotlin__cinterop_JvmCallbacksKt
|
* Class: kotlinx_cinterop_JvmCallbacksKt
|
||||||
* Method: deleteGlobalRef
|
* Method: deleteGlobalRef
|
||||||
* Signature: (J)V
|
* Signature: (J)V
|
||||||
*/
|
*/
|
||||||
JNIEXPORT void JNICALL Java_kotlin_1_cinterop_JvmCallbacksKt_deleteGlobalRef(JNIEnv *env, jclass cls, jlong ref) {
|
JNIEXPORT void JNICALL Java_kotlinx_cinterop_JvmCallbacksKt_deleteGlobalRef(JNIEnv *env, jclass cls, jlong ref) {
|
||||||
(*env)->DeleteGlobalRef(env, (jobject) ref);
|
(*env)->DeleteGlobalRef(env, (jobject) ref);
|
||||||
}
|
}
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package kotlin_.cinterop
|
package kotlinx.cinterop
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This class provides a way to create a stable handle to any Kotlin object.
|
* This class provides a way to create a stable handle to any Kotlin object.
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package kotlin_.cinterop
|
package kotlinx.cinterop
|
||||||
|
|
||||||
import sun.misc.Unsafe
|
import sun.misc.Unsafe
|
||||||
|
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package kotlin_.cinterop
|
package kotlinx.cinterop
|
||||||
|
|
||||||
import kotlin.reflect.companionObjectInstance
|
import kotlin.reflect.companionObjectInstance
|
||||||
import kotlin.reflect.primaryConstructor
|
import kotlin.reflect.primaryConstructor
|
||||||
@@ -1,4 +0,0 @@
|
|||||||
/**
|
|
||||||
* TODO: rename to kotlin
|
|
||||||
*/
|
|
||||||
package kotlin_;
|
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package kotlin_.cinterop
|
package kotlinx.cinterop
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The entity which has an associated native pointer.
|
* The entity which has an associated native pointer.
|
||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
package kotlin_.cinterop
|
package kotlinx.cinterop
|
||||||
|
|
||||||
interface NativePlacement {
|
interface NativePlacement {
|
||||||
|
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
/**
|
||||||
|
* This package contains API and runtime support for calling C code from Kotlin (aka Kotlin C interop).
|
||||||
|
*
|
||||||
|
* TODO: decide about package location.
|
||||||
|
*/
|
||||||
|
package kotlinx.cinterop;
|
||||||
+1
-1
@@ -750,7 +750,7 @@ class StubGenerator(
|
|||||||
out("package $pkgName")
|
out("package $pkgName")
|
||||||
out("")
|
out("")
|
||||||
}
|
}
|
||||||
out("import kotlin_.cinterop.*")
|
out("import kotlinx.cinterop.*")
|
||||||
out("")
|
out("")
|
||||||
|
|
||||||
functionsToBind.forEach {
|
functionsToBind.forEach {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import kotlin_.cinterop.*
|
import kotlinx.cinterop.*
|
||||||
import llvm.*
|
import llvm.*
|
||||||
|
|
||||||
fun main(args: Array<String>) = memScoped {
|
fun main(args: Array<String>) = memScoped {
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
package org.jetbrains.kotlin.backend.konan.llvm
|
package org.jetbrains.kotlin.backend.konan.llvm
|
||||||
|
|
||||||
|
|
||||||
import kotlin_.cinterop.*
|
import kotlinx.cinterop.*
|
||||||
import llvm.*
|
import llvm.*
|
||||||
import org.jetbrains.kotlin.descriptors.ClassConstructorDescriptor
|
import org.jetbrains.kotlin.descriptors.ClassConstructorDescriptor
|
||||||
import org.jetbrains.kotlin.descriptors.ClassDescriptor
|
import org.jetbrains.kotlin.descriptors.ClassDescriptor
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
package org.jetbrains.kotlin.backend.konan.llvm
|
package org.jetbrains.kotlin.backend.konan.llvm
|
||||||
|
|
||||||
import kotlin_.cinterop.*
|
import kotlinx.cinterop.*
|
||||||
import llvm.*
|
import llvm.*
|
||||||
import org.jetbrains.kotlin.backend.konan.hash.GlobalHash
|
import org.jetbrains.kotlin.backend.konan.hash.GlobalHash
|
||||||
import org.jetbrains.kotlin.descriptors.ClassDescriptor
|
import org.jetbrains.kotlin.descriptors.ClassDescriptor
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
package org.jetbrains.kotlin.backend.konan.llvm
|
package org.jetbrains.kotlin.backend.konan.llvm
|
||||||
|
|
||||||
import kotlin_.cinterop.*
|
import kotlinx.cinterop.*
|
||||||
import org.jetbrains.kotlin.backend.konan.hash.*
|
import org.jetbrains.kotlin.backend.konan.hash.*
|
||||||
|
|
||||||
internal fun localHash(data: ByteArray): Long {
|
internal fun localHash(data: ByteArray): Long {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
package org.jetbrains.kotlin.backend.konan.llvm
|
package org.jetbrains.kotlin.backend.konan.llvm
|
||||||
|
|
||||||
import kotlin_.cinterop.*
|
import kotlinx.cinterop.*
|
||||||
import llvm.*
|
import llvm.*
|
||||||
import org.jetbrains.kotlin.backend.konan.*
|
import org.jetbrains.kotlin.backend.konan.*
|
||||||
import org.jetbrains.kotlin.builtins.KotlinBuiltIns
|
import org.jetbrains.kotlin.builtins.KotlinBuiltIns
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
package org.jetbrains.kotlin.backend.konan.llvm
|
package org.jetbrains.kotlin.backend.konan.llvm
|
||||||
|
|
||||||
import kotlin_.cinterop.*
|
import kotlinx.cinterop.*
|
||||||
import llvm.*
|
import llvm.*
|
||||||
import org.jetbrains.kotlin.descriptors.ClassConstructorDescriptor
|
import org.jetbrains.kotlin.descriptors.ClassConstructorDescriptor
|
||||||
import org.jetbrains.kotlin.descriptors.FunctionDescriptor
|
import org.jetbrains.kotlin.descriptors.FunctionDescriptor
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
package org.jetbrains.kotlin.backend.konan.llvm
|
package org.jetbrains.kotlin.backend.konan.llvm
|
||||||
|
|
||||||
import kotlin_.cinterop.*
|
import kotlinx.cinterop.*
|
||||||
import llvm.*
|
import llvm.*
|
||||||
import org.jetbrains.kotlin.ir.IrElement
|
import org.jetbrains.kotlin.ir.IrElement
|
||||||
import org.jetbrains.kotlin.ir.util.DumpIrTreeVisitor
|
import org.jetbrains.kotlin.ir.util.DumpIrTreeVisitor
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
package org.jetbrains.kotlin.backend.konan.llvm
|
package org.jetbrains.kotlin.backend.konan.llvm
|
||||||
|
|
||||||
|
|
||||||
import kotlin_.cinterop.*
|
import kotlinx.cinterop.*
|
||||||
import llvm.*
|
import llvm.*
|
||||||
import org.jetbrains.kotlin.ir.declarations.IrFunction
|
import org.jetbrains.kotlin.ir.declarations.IrFunction
|
||||||
import org.jetbrains.kotlin.ir.declarations.IrModuleFragment
|
import org.jetbrains.kotlin.ir.declarations.IrModuleFragment
|
||||||
|
|||||||
+1
-1
@@ -1,7 +1,7 @@
|
|||||||
package org.jetbrains.kotlin.backend.konan.llvm
|
package org.jetbrains.kotlin.backend.konan.llvm
|
||||||
|
|
||||||
|
|
||||||
import kotlin_.cinterop.*
|
import kotlinx.cinterop.*
|
||||||
import llvm.*
|
import llvm.*
|
||||||
import org.jetbrains.kotlin.backend.konan.implementation
|
import org.jetbrains.kotlin.backend.konan.implementation
|
||||||
import org.jetbrains.kotlin.backend.konan.implementedInterfaces
|
import org.jetbrains.kotlin.backend.konan.implementedInterfaces
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
package org.jetbrains.kotlin.backend.konan.llvm
|
package org.jetbrains.kotlin.backend.konan.llvm
|
||||||
|
|
||||||
import kotlin_.cinterop.*
|
import kotlinx.cinterop.*
|
||||||
import llvm.*
|
import llvm.*
|
||||||
|
|
||||||
class Runtime(private val bitcodeFile: String) {
|
class Runtime(private val bitcodeFile: String) {
|
||||||
|
|||||||
+2
-2
@@ -1,7 +1,7 @@
|
|||||||
package org.jetbrains.kotlin.backend.konan.llvm
|
package org.jetbrains.kotlin.backend.konan.llvm
|
||||||
|
|
||||||
import kotlin_.cinterop.CPointer
|
import kotlinx.cinterop.CPointer
|
||||||
import kotlin_.cinterop.CPointerVarWithValueMappedTo
|
import kotlinx.cinterop.CPointerVarWithValueMappedTo
|
||||||
|
|
||||||
// TODO: the definitions below are required to perform smooth migration to new interop;
|
// TODO: the definitions below are required to perform smooth migration to new interop;
|
||||||
// remove after replacing with LLVM*Ref typedefs
|
// remove after replacing with LLVM*Ref typedefs
|
||||||
|
|||||||
Reference in New Issue
Block a user