mirror of
https://github.com/irmen/prog8.git
synced 2024-12-25 23:29:55 +00:00
no longer warn about removing unused asmsubs
This commit is contained in:
parent
791dbbab9b
commit
b543cc34cd
@ -53,7 +53,8 @@ internal class StatementOptimizer(private val program: Program,
|
||||
}
|
||||
|
||||
if(subroutine !in callgraph.usedSymbols && !forceOutput) {
|
||||
errors.warn("removing unused subroutine '${subroutine.name}'", subroutine.position)
|
||||
if(!subroutine.isAsmSubroutine)
|
||||
errors.warn("removing unused subroutine '${subroutine.name}'", subroutine.position)
|
||||
return listOf(IAstModification.Remove(subroutine, subroutine.definingScope()))
|
||||
}
|
||||
|
||||
|
@ -2,6 +2,7 @@
|
||||
TODO
|
||||
====
|
||||
|
||||
- don't require carry parameter Pc to asmsubs to be last; sort this out yourself like with the R0-R15 registers
|
||||
- make blocks without explicit memory address, word-aligned in the assembly.
|
||||
- add sound to the cx16 tehtriz
|
||||
- hoist all variable declarations up to the subroutine scope *before* even the constant folding takes place (to avoid undefined symbol errors when referring to a variable from another nested scope in the subroutine)
|
||||
|
Loading…
Reference in New Issue
Block a user