1
0
mirror of https://github.com/KarolS/millfork.git synced 2024-12-24 15:29:23 +00:00

Fillout the call graph for variable overlap calculations

This commit is contained in:
Karol Stasiak 2018-06-04 09:43:51 +02:00
parent b6e61f16ec
commit beef56cdab

View File

@ -37,6 +37,7 @@ abstract class CallGraph(program: Program) {
entryPoints += "main"
program.declarations.foreach(s => add(None, Nil, s))
everCalledFunctions.retain(allFunctions)
fillOut()
def add(currentFunction: Option[String], callingFunctions: List[String], node: Node): Unit = {
node match {