a few tiny cleanups (#5712)

exposes emitLazily (for nlvm) and simplifies some conditionals
This commit is contained in:
Jacek Sieka 2017-05-29 15:42:26 +08:00 • committed by Andreas Rumpf
commit ba4cc4bf35
4 changed files with 12 additions and 30 deletions

View file

@ -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