JVM_IR: do not compute stored file signature when not needed
This commit is contained in:
committed by
TeamCityServer
parent
10c3429ce6
commit
c0f6508ff9
+3
@@ -108,12 +108,15 @@ class JvmIdSignatureDescriptor(mangler: KotlinMangler.DescriptorMangler) : IdSig
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun computeStoredFileSignature(descriptor: DeclarationDescriptorWithSource) {
|
private fun computeStoredFileSignature(descriptor: DeclarationDescriptorWithSource) {
|
||||||
|
// isTopLevelPrivate needs to be already set.
|
||||||
|
if (isTopLevelPrivate && externallyGivenFileSignature == null) {
|
||||||
storedFileSignature = IdSignature.FileSignature(
|
storedFileSignature = IdSignature.FileSignature(
|
||||||
descriptor.source.containingFile,
|
descriptor.source.containingFile,
|
||||||
descriptor.containingPackage() ?: FqName.ROOT,
|
descriptor.containingPackage() ?: FqName.ROOT,
|
||||||
descriptor.source.containingFile.name ?: "unknown"
|
descriptor.source.containingFile.name ?: "unknown"
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
var storedFileSignature: IdSignature.FileSignature? = null
|
var storedFileSignature: IdSignature.FileSignature? = null
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user