Specify default value for irBackend

This commit is contained in:
Mikhael Bogdanov
2019-03-05 11:01:59 +01:00
parent a3c3282362
commit cc0c3b1592
6 changed files with 7 additions and 12 deletions
@@ -19,8 +19,7 @@ class KotlinToJvmSignatureMapperImpl : KotlinToJvmSignatureMapper {
private val typeMapper = KotlinTypeMapper(
BindingContext.EMPTY, ClassBuilderMode.LIGHT_CLASSES,
IncompatibleClassTracker.DoNothing, JvmAbi.DEFAULT_MODULE_NAME, JvmTarget.DEFAULT,
KotlinTypeMapper.LANGUAGE_VERSION_SETTINGS_DEFAULT, // TODO use proper LanguageVersionSettings
false
KotlinTypeMapper.LANGUAGE_VERSION_SETTINGS_DEFAULT // TODO use proper LanguageVersionSettings
)
override fun mapToJvmMethodSignature(function: FunctionDescriptor) = typeMapper.mapAsmMethod(function)
@@ -82,8 +82,8 @@ class KotlinTypeMapper @JvmOverloads constructor(
private val moduleName: String,
val jvmTarget: JvmTarget,
private val languageVersionSettings: LanguageVersionSettings,
private val isIrBackend: Boolean,
private val typePreprocessor: Function1<KotlinType, KotlinType>? = null
private val isIrBackend: Boolean = false,
private val typePreprocessor: Function1<KotlinType, KotlinType?>? = null
) {
private val isReleaseCoroutines = languageVersionSettings.supportsFeature(LanguageFeature.ReleaseCoroutines)