summary refs log tree commit diff stats
path: root/compiler/passaux.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2013-12-27 23:10:36 +0100
committerAraq <rumpf_a@web.de>2013-12-27 23:10:36 +0100
commit92b8fac94a7243cde785d985db3fd86b6025b079 (patch)
treeedbfdbab6cf496d6a0cfe226957769c3c43d2fa9 /compiler/passaux.nim
parent706266d8b728b19fde6d69fd6ccdfb65ae7b6a17 (diff)
downloadNim-92b8fac94a7243cde785d985db3fd86b6025b079.tar.gz
case consistency part 4
Diffstat (limited to 'compiler/passaux.nim')
-rw-r--r--compiler/passaux.nim6
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/passaux.nim b/compiler/passaux.nim
index 4a85c994c..79d11419b 100644
--- a/compiler/passaux.nim
+++ b/compiler/passaux.nim
@@ -19,12 +19,12 @@ proc verboseOpen(s: PSym): PPassContext =
   
 proc verboseProcess(context: PPassContext, n: PNode): PNode = 
   result = n
-  if context != nil: InternalError("logpass: context is not nil")
+  if context != nil: internalError("logpass: context is not nil")
   if gVerbosity == 3: 
     # system.nim deactivates all hints, for verbosity:3 we want the processing
     # messages nonetheless, so we activate them again unconditionally:
     incl(msgs.gNotes, hintProcessing)
-    Message(n.info, hintProcessing, $idgen.gBackendId)
+    message(n.info, hintProcessing, $idgen.gBackendId)
   
 const verbosePass* = makePass(open = verboseOpen, process = verboseProcess)
 
@@ -34,7 +34,7 @@ proc cleanUp(c: PPassContext, n: PNode): PNode =
   if optDeadCodeElim in gGlobalOptions or n == nil: return 
   case n.kind
   of nkStmtList: 
-    for i in countup(0, sonsLen(n) - 1): discard cleanup(c, n.sons[i])
+    for i in countup(0, sonsLen(n) - 1): discard cleanUp(c, n.sons[i])
   of nkProcDef, nkMethodDef: 
     if n.sons[namePos].kind == nkSym: 
       var s = n.sons[namePos].sym