mirror of
https://github.com/irmen/prog8.git
synced 2026-04-20 11:17:01 +00:00
added %jmptable
This commit is contained in:
@@ -101,7 +101,7 @@ class UnusedCodeRemover(private val program: Program,
|
||||
}
|
||||
if (callgraph.unused(block)) {
|
||||
if (block.statements.any { it !is VarDecl || it.type == VarDeclType.VAR } && "ignore_unused" !in block.options()) {
|
||||
if (!block.statements.any { it is Subroutine && it.hasBeenInlined })
|
||||
if (!block.statements.any { it is Subroutine && !it.hasBeenInlined })
|
||||
errors.info("removing unused block '${block.name}'", block.position)
|
||||
}
|
||||
if (!block.statements.any { it is Subroutine && it.hasBeenInlined }) {
|
||||
|
||||
Reference in New Issue
Block a user