mirror of
https://github.com/irmen/prog8.git
synced 2026-10-22 05:02:58 +00:00
make -dumpvars work on all compilation targets
This commit is contained in:
1 parent
199c3e4efb
commit
1ba08ec6ec
6 files changed
+67
-1
No files matched your search
@@ -9,6 +9,7 @@ import prog8.code.core.IErrorReporter
|
||||
import prog8.codegen.intermediate.IRCodeGen
|
||||
import prog8.intermediate.IRFileWriter
|
||||
import prog8.intermediate.IRProgram
|
||||
import prog8.intermediate.dumpVariables
|
||||
|
||||
class VmCodeGen(val retainSSA: Boolean,
|
||||
private val preassignedCallSiteIds: Map<String, UByte> = emptyMap()
|
||||
@@ -24,6 +25,9 @@ class VmCodeGen(val retainSSA: Boolean,
|
||||
|
||||
irProgram.verifyRegisterTypes(irCodeGen.registerTypes())
|
||||
|
||||
if (options.dumpVariables)
|
||||
dumpVariables(irProgram)
|
||||
|
||||
return VmAssemblyProgram(irProgram.name, irProgram)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user