JVM IR: Fix names of fake local variables for inline arguments

This commit is contained in:
Steven Schäfer
2019-12-16 16:49:55 +01:00
committed by Alexander Udalov
parent c486fa6189
commit 5d3ef4c632
3 changed files with 10 additions and 26 deletions
@@ -32,11 +32,6 @@ abstract class AbstractIrCheckLocalVariablesTableTest : AbstractCheckLocalVariab
return list.map { it.toString() }
// Ignore local index.
.map { line -> line.replaceFirst("INDEX=\\d+".toRegex(), "INDEX=*") }
// Ignore the names of local functions which have integer names in
// the current backend and more descriptive names with the JVM_IR
// backend.
.map { line -> line.replace("\\\$\\d+".toRegex(), "\\\$*") }
.map { line -> line.replace("\\\$lambda-\\d+".toRegex(), "\\\$*") }
.sorted()
}
@@ -45,10 +40,6 @@ abstract class AbstractIrCheckLocalVariablesTableTest : AbstractCheckLocalVariab
.filter { line -> line.startsWith("// VARIABLE ") }
// Ignore local index.
.map { line -> line.replaceFirst("INDEX=\\d+".toRegex(), "INDEX=*") }
// Ignore the names of local functions which have integer names in
// the current backend and more descriptive names with the JVM_IR
// backend.
.map { line -> line.replace("\\\$\\d+".toRegex(), "\\\$*") }
.sorted()
}