a few tiny cleanups (#5712)
exposes emitLazily (for nlvm) and simplifies some conditionals
This commit is contained in:
parent
aef5b2eb54
commit
ba4cc4bf35
4 changed files with 12 additions and 30 deletions
|
|
@ -47,10 +47,6 @@ proc findPendingModule(m: BModule, s: PSym): BModule =
|
|||
var ms = getModule(s)
|
||||
result = m.g.modules[ms.position]
|
||||
|
||||
proc emitLazily(s: PSym): bool {.inline.} =
|
||||
result = optDeadCodeElim in gGlobalOptions or
|
||||
sfDeadCodeElim in getModule(s).flags
|
||||
|
||||
proc initLoc(result: var TLoc, k: TLocKind, typ: PType, s: TStorageLoc) =
|
||||
result.k = k
|
||||
result.s = s
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue