mirror of
https://github.com/KarolS/millfork.git
synced 2025-04-18 22:41:02 +00:00
Consider kernal_interrupt functions as entry points
This commit is contained in:
parent
790c836771
commit
a70a1c0e6b
@ -48,7 +48,7 @@ abstract class CallGraph(program: Program, log: Logger) {
|
||||
case f: FunctionDeclarationStatement =>
|
||||
allFunctions += f.name
|
||||
allFunctions += f.name + ".trampoline" // TODO: ???
|
||||
if (f.address.isDefined || f.interrupt) entryPoints += f.name
|
||||
if (f.address.isDefined || f.interrupt || f.kernalInterrupt) entryPoints += f.name
|
||||
f.statements.getOrElse(Nil).foreach(s => this.add(Some(f.name), Nil, s))
|
||||
case s: Statement =>
|
||||
s.getAllExpressions.foreach(e => add(currentFunction, callingFunctions, e))
|
||||
|
Loading…
x
Reference in New Issue
Block a user