mirror of
https://github.com/KarolS/millfork.git
synced 2025-01-11 12:29:46 +00:00
Fillout the call graph for variable overlap calculations
This commit is contained in:
parent
b6e61f16ec
commit
beef56cdab
@ -37,6 +37,7 @@ abstract class CallGraph(program: Program) {
|
|||||||
entryPoints += "main"
|
entryPoints += "main"
|
||||||
program.declarations.foreach(s => add(None, Nil, s))
|
program.declarations.foreach(s => add(None, Nil, s))
|
||||||
everCalledFunctions.retain(allFunctions)
|
everCalledFunctions.retain(allFunctions)
|
||||||
|
fillOut()
|
||||||
|
|
||||||
def add(currentFunction: Option[String], callingFunctions: List[String], node: Node): Unit = {
|
def add(currentFunction: Option[String], callingFunctions: List[String], node: Node): Unit = {
|
||||||
node match {
|
node match {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user