Skip to content

Commit

Permalink
Thie is K/N piece of -Xklib-mpp rename to -Xexpect-actual-linker
Browse files Browse the repository at this point in the history
  • Loading branch information
alexander-gorshenev authored and ilmat192 committed Apr 9, 2020
1 parent 0a90901 commit 624328c
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ internal val buildCExportsPhase = konanUnitPhase(
internal val psiToIrPhase = konanUnitPhase(
op = {
// Translate AST to high level IR.
val mppKlibs = config.configuration.get(CommonConfigurationKeys.KLIB_MPP)?:false
val expectActualLinker = config.configuration.get(CommonConfigurationKeys.EXPECT_ACTUAL_LINKER)?:false

val symbolTable = symbolTable!!

Expand Down Expand Up @@ -239,7 +239,7 @@ internal val psiToIrPhase = konanUnitPhase(
// referenceExpectsForUsedActuals() appears to be quadratic in time because of
// how ExpectedActualResolver is implemented.
// Need to fix ExpectActualResolver to either cache expects or somehow reduce the member scope searches.
if (mppKlibs) expectDescriptorToSymbol else null
if (expectActualLinker) expectDescriptorToSymbol else null
)

deserializer.finalizeExpectActualLinker()
Expand Down Expand Up @@ -287,18 +287,18 @@ internal val copyDefaultValuesToActualPhase = konanUnitPhase(

internal val serializerPhase = konanUnitPhase(
op = {
val mppKlibs = config.configuration.get(CommonConfigurationKeys.KLIB_MPP)?:false
val expectActualLinker = config.configuration.get(CommonConfigurationKeys.EXPECT_ACTUAL_LINKER)?:false

serializedIr = irModule?.let { ir ->
KonanIrModuleSerializer(
this, ir.irBuiltins, expectDescriptorToSymbol, skipExpects = !mppKlibs
this, ir.irBuiltins, expectDescriptorToSymbol, skipExpects = !expectActualLinker
).serializedIrModule(ir)
}

val serializer = KlibMetadataMonolithicSerializer(
this.config.configuration.languageVersionSettings,
config.configuration.get(CommonConfigurationKeys.METADATA_VERSION)!!,
!mppKlibs)
!expectActualLinker)
serializedMetadata = serializer.serializeModule(moduleDescriptor)
},
name = "Serializer",
Expand Down

0 comments on commit 624328c

Please sign in to comment.