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