diff options
author | Zahary Karadjov <zahary@gmail.com> | 2012-11-16 01:48:12 +0200 |
---|---|---|
committer | Zahary Karadjov <zahary@gmail.com> | 2012-11-28 01:15:13 +0200 |
commit | 36e25a6849f4d06ab6919e60664e6c04b0a63aa7 (patch) | |
tree | 62431014f96230c9ee899e688136622d43c07c49 /compiler/passaux.nim | |
parent | 091c1b30756a15c76ca09c0d95cfbb946aa9ea13 (diff) | |
download | Nim-36e25a6849f4d06ab6919e60664e6c04b0a63aa7.tar.gz |
CaaS in-memory caching
removed some redundant filepath params and variables and switched to canonical paths in most places
Diffstat (limited to 'compiler/passaux.nim')
-rwxr-xr-x | compiler/passaux.nim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/passaux.nim b/compiler/passaux.nim index 655b8ae68..4a85c994c 100755 --- a/compiler/passaux.nim +++ b/compiler/passaux.nim @@ -12,7 +12,7 @@ import strutils, ast, astalgo, passes, msgs, options, idgen -proc verboseOpen(s: PSym, filename: string): PPassContext = +proc verboseOpen(s: PSym): PPassContext = #MessageOut('compiling ' + s.name.s); result = nil # we don't need a context if gVerbosity > 0: rawMessage(hintProcessing, s.name.s) @@ -29,7 +29,7 @@ proc verboseProcess(context: PPassContext, n: PNode): PNode = const verbosePass* = makePass(open = verboseOpen, process = verboseProcess) proc cleanUp(c: PPassContext, n: PNode): PNode = - result = n + result = n # we cannot clean up if dead code elimination is activated if optDeadCodeElim in gGlobalOptions or n == nil: return case n.kind |