Revert "[K/N] Emmit error on using @SymbolName with new mm"

This reverts commit 7e58660ce2.
This commit is contained in:
Svyatoslav Scherbina
2021-11-18 12:18:01 +03:00
committed by Space
parent 2179987de7
commit 7042d01271
@@ -811,10 +811,6 @@ internal class CodeGeneratorVisitor(val context: Context, val lifetimes: Map<IrE
context.llvm.initializersGenerationState.moduleThreadLocalInitializers.add(declaration)
}
if (declaration.hasAnnotation(RuntimeNames.symbolNameAnnotation) && context.memoryModel == MemoryModel.EXPERIMENTAL) {
context.reportCompilationError("@SymbolName annotation on function ${declaration.kotlinFqName} can't be used with experimental memory model.")
}
if ((declaration as? IrSimpleFunction)?.modality == Modality.ABSTRACT
|| declaration.isExternal
|| body == null)