mirror of
https://github.com/KarolS/millfork.git
synced 2024-06-12 06:29:34 +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 =>
|
case f: FunctionDeclarationStatement =>
|
||||||
allFunctions += f.name
|
allFunctions += f.name
|
||||||
allFunctions += f.name + ".trampoline" // TODO: ???
|
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))
|
f.statements.getOrElse(Nil).foreach(s => this.add(Some(f.name), Nil, s))
|
||||||
case s: Statement =>
|
case s: Statement =>
|
||||||
s.getAllExpressions.foreach(e => add(currentFunction, callingFunctions, e))
|
s.getAllExpressions.foreach(e => add(currentFunction, callingFunctions, e))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user