[refactoring] compiler: simplified markUsed
This commit is contained in:
parent
04708742e7
commit
81ddc67785
9 changed files with 50 additions and 50 deletions
|
|
@ -450,7 +450,7 @@ proc semMacroExpr(c: PContext, n, nOrig: PNode, sym: PSym,
|
|||
pushInfoContext(c.config, nOrig.info, sym.detailedInfo)
|
||||
|
||||
let info = getCallLineInfo(n)
|
||||
markUsed(c, info, sym, c.graph.usageSym)
|
||||
markUsed(c, info, sym)
|
||||
onUse(info, sym)
|
||||
if sym == c.p.owner:
|
||||
globalError(c.config, info, "recursive dependency: '$1'" % sym.name.s)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue