fix UnusedImport for nim c compiler/nim (#17152)
This commit is contained in:
parent
7c2ac98880
commit
b1a3651ae4
1 changed files with 4 additions and 3 deletions
|
|
@ -18,11 +18,12 @@
|
||||||
## also doing cross-module dependency tracking and DCE that we don't need
|
## also doing cross-module dependency tracking and DCE that we don't need
|
||||||
## anymore. DCE is now done as prepass over the entire packed module graph.
|
## anymore. DCE is now done as prepass over the entire packed module graph.
|
||||||
|
|
||||||
import std / [intsets, algorithm]
|
import std/[packedsets, algorithm]
|
||||||
import ".." / [ast, options, lineinfos, modulegraphs, cgendata, cgen,
|
# std/intsets would give `UnusedImport`, pending https://github.com/nim-lang/Nim/issues/14246
|
||||||
|
import ".."/[ast, options, lineinfos, modulegraphs, cgendata, cgen,
|
||||||
pathutils, extccomp, msgs]
|
pathutils, extccomp, msgs]
|
||||||
|
|
||||||
import packed_ast, to_packed_ast, bitabs, dce, rodfiles
|
import packed_ast, to_packed_ast, dce, rodfiles
|
||||||
|
|
||||||
proc unpackTree(g: ModuleGraph; thisModule: int;
|
proc unpackTree(g: ModuleGraph; thisModule: int;
|
||||||
tree: PackedTree; n: NodePos): PNode =
|
tree: PackedTree; n: NodePos): PNode =
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue