[Native][tests] Rename MemoryModel.DEFAULT to MemoryModel.LEGACY

This commit is contained in:
Dmitriy Dolovov
2022-05-27 16:19:25 +03:00
parent 6efd6f9346
commit 48c4d4cf21
@@ -90,10 +90,9 @@ internal enum class OptimizationMode(private val description: String, val compil
*/
internal enum class MemoryModel(val compilerFlags: List<String>?) {
/**
* TODO: rename DEFAULT to LEGACY. It was postponed, as it would require simultaneous change in teamcity configuration
* but it should be done at some point.
*/
DEFAULT(listOf("-memory-model", "strict")),
LEGACY(listOf("-memory-model", "strict")),
EXPERIMENTAL(listOf("-memory-model", "experimental"));
override fun toString() = compilerFlags?.joinToString(prefix = "(", separator = " ", postfix = ")").orEmpty()