IC: more things work
This commit is contained in:
parent
c74226f4c1
commit
f86b827d9e
3 changed files with 34 additions and 23 deletions
|
|
@ -52,7 +52,7 @@ proc needsRecompile(g: ModuleGraph; fileIdx: FileIndex; fullpath: AbsoluteFile;
|
|||
return true
|
||||
return false
|
||||
|
||||
proc getModuleId*(g: ModuleGraph; fileIdx: FileIndex; fullpath: AbsoluteFile): int =
|
||||
proc getModuleId(g: ModuleGraph; fileIdx: FileIndex; fullpath: AbsoluteFile): int =
|
||||
## Analyse the known dependency graph.
|
||||
if g.config.symbolFiles == disabledSf: return getID()
|
||||
when false:
|
||||
|
|
@ -82,6 +82,10 @@ proc getModuleId*(g: ModuleGraph; fileIdx: FileIndex; fullpath: AbsoluteFile): i
|
|||
db.exec(sql"delete from toplevelstmts where module = ?", module[0])
|
||||
db.exec(sql"delete from statics where module = ?", module[0])
|
||||
|
||||
proc loadModuleSym*(g: ModuleGraph; fileIdx: FileIndex; fullpath: AbsoluteFile): (PSym, int) =
|
||||
let id = getModuleId(g, fileIdx, fullpath)
|
||||
result = (g.incr.r.syms.getOrDefault(abs id), id)
|
||||
|
||||
proc pushType(w: var Writer, t: PType) =
|
||||
if not containsOrIncl(w.tmarks, t.uniqueId):
|
||||
w.tstack.add(t)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue