diff python/zcc.py @ 258:04c19282a5aa

Added register allocator
author Windel Bouwman
date Mon, 05 Aug 2013 19:46:11 +0200
parents 7416c923a02a
children e64bae57cda8
line wrap: on
line diff
--- a/python/zcc.py	Sun Aug 04 18:34:06 2013 +0200
+++ b/python/zcc.py	Mon Aug 05 19:46:11 2013 +0200
@@ -45,8 +45,10 @@
     obj = cg.generate(ircode)
     return True
 
+logformat='%(asctime)s|%(levelname)s|%(name)s|%(message)s'
+
 def main(args):
-    logging.basicConfig(format='%(asctime)s %(levelname)s %(name)s %(message)s', level=args.log)
+    logging.basicConfig(format=logformat, level=args.log)
     src = args.source.read()
     args.source.close()
     diag = ppci.DiagnosticsManager()