removed unused imports [refactoring]
This commit is contained in:
parent
44e7a7b6c2
commit
0d5bd7e8b5
9 changed files with 9 additions and 11 deletions
|
|
@ -10,7 +10,7 @@
|
||||||
## Simple alias analysis for the HLO and the code generators.
|
## Simple alias analysis for the HLO and the code generators.
|
||||||
|
|
||||||
import
|
import
|
||||||
ast, astalgo, types, trees, intsets, msgs
|
ast, astalgo, types, trees, intsets
|
||||||
|
|
||||||
type
|
type
|
||||||
TAnalysisResult* = enum
|
TAnalysisResult* = enum
|
||||||
|
|
|
||||||
|
|
@ -13,7 +13,7 @@ import
|
||||||
ast, astalgo, hashes, trees, platform, magicsys, extccomp, options, intsets,
|
ast, astalgo, hashes, trees, platform, magicsys, extccomp, options, intsets,
|
||||||
nversion, nimsets, msgs, bitsets, idents, types,
|
nversion, nimsets, msgs, bitsets, idents, types,
|
||||||
ccgutils, os, ropes, math, passes, wordrecg, treetab, cgmeth,
|
ccgutils, os, ropes, math, passes, wordrecg, treetab, cgmeth,
|
||||||
condsyms, rodutils, renderer, cgendata, ccgmerge, aliases,
|
rodutils, renderer, cgendata, ccgmerge, aliases,
|
||||||
lowerings, tables, sets, ndi, lineinfos, pathutils, transf, enumtostr
|
lowerings, tables, sets, ndi, lineinfos, pathutils, transf, enumtostr
|
||||||
|
|
||||||
when not defined(leanCompiler):
|
when not defined(leanCompiler):
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
## This module contains the data structures for the C code generation phase.
|
## This module contains the data structures for the C code generation phase.
|
||||||
|
|
||||||
import
|
import
|
||||||
ast, ropes, passes, options, intsets,
|
ast, ropes, options, intsets,
|
||||||
tables, ndi, lineinfos, pathutils, modulegraphs
|
tables, ndi, lineinfos, pathutils, modulegraphs
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
|
||||||
|
|
@ -15,8 +15,8 @@ import
|
||||||
ast, strutils, strtabs, options, msgs, os, ropes, idents,
|
ast, strutils, strtabs, options, msgs, os, ropes, idents,
|
||||||
wordrecg, syntaxes, renderer, lexer, packages/docutils/rstast,
|
wordrecg, syntaxes, renderer, lexer, packages/docutils/rstast,
|
||||||
packages/docutils/rst, packages/docutils/rstgen,
|
packages/docutils/rst, packages/docutils/rstgen,
|
||||||
packages/docutils/highlite, json, xmltree, cgi, trees, types,
|
json, xmltree, cgi, trees, types,
|
||||||
typesrenderer, astalgo, modulepaths, lineinfos, intsets,
|
typesrenderer, astalgo, lineinfos, intsets,
|
||||||
pathutils, trees
|
pathutils, trees
|
||||||
|
|
||||||
const
|
const
|
||||||
|
|
|
||||||
|
|
@ -24,8 +24,6 @@ import
|
||||||
when not defined(leanCompiler):
|
when not defined(leanCompiler):
|
||||||
import jsgen, docgen, docgen2
|
import jsgen, docgen, docgen2
|
||||||
|
|
||||||
from magicsys import resetSysTypes
|
|
||||||
|
|
||||||
proc semanticPasses(g: ModuleGraph) =
|
proc semanticPasses(g: ModuleGraph) =
|
||||||
registerPass g, verbosePass
|
registerPass g, verbosePass
|
||||||
registerPass g, semPass
|
registerPass g, semPass
|
||||||
|
|
|
||||||
|
|
@ -9,7 +9,7 @@
|
||||||
|
|
||||||
## This module implements the new compilation cache.
|
## This module implements the new compilation cache.
|
||||||
|
|
||||||
import strutils, os, intsets, tables, ropes, db_sqlite, msgs, options, types,
|
import strutils, intsets, tables, ropes, db_sqlite, msgs, options,
|
||||||
renderer, rodutils, idents, astalgo, btrees, magicsys, cgmeth, extccomp,
|
renderer, rodutils, idents, astalgo, btrees, magicsys, cgmeth, extccomp,
|
||||||
btrees, trees, condsyms, nversion, pathutils
|
btrees, trees, condsyms, nversion, pathutils
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
import
|
import
|
||||||
options, ast, astalgo, trees, msgs,
|
options, ast, astalgo, trees, msgs,
|
||||||
idents, renderer, types, passes, semfold, magicsys, cgmeth,
|
idents, renderer, types, semfold, magicsys, cgmeth,
|
||||||
lowerings, injectdestructors, liftlocals,
|
lowerings, injectdestructors, liftlocals,
|
||||||
modulegraphs, lineinfos
|
modulegraphs, lineinfos
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -10,7 +10,7 @@
|
||||||
## This module contains the type definitions for the new evaluation engine.
|
## This module contains the type definitions for the new evaluation engine.
|
||||||
## An instruction is 1-3 int32s in memory, it is a register based VM.
|
## An instruction is 1-3 int32s in memory, it is a register based VM.
|
||||||
|
|
||||||
import ast, idents, intsets, options, modulegraphs, lineinfos
|
import ast, idents, options, modulegraphs, lineinfos
|
||||||
|
|
||||||
const
|
const
|
||||||
byteExcess* = 128 # we use excess-K for immediates
|
byteExcess* = 128 # we use excess-K for immediates
|
||||||
|
|
|
||||||
|
|
@ -103,7 +103,7 @@
|
||||||
|
|
||||||
{.deadCodeElim: on.} # dce option deprecated
|
{.deadCodeElim: on.} # dce option deprecated
|
||||||
|
|
||||||
import strutils, sqlite3
|
import sqlite3
|
||||||
|
|
||||||
import db_common
|
import db_common
|
||||||
export db_common
|
export db_common
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue