diff python/codegenarm.py @ 255:7416c923a02a

Added more logging
author Windel Bouwman
date Sun, 04 Aug 2013 15:10:10 +0200
parents f5fba5b554d7
children 225f444019b1
line wrap: on
line diff
--- a/python/codegenarm.py	Wed Jul 31 21:20:58 2013 +0200
+++ b/python/codegenarm.py	Sun Aug 04 15:10:10 2013 +0200
@@ -1,3 +1,4 @@
+import logging
 import ir
 from target import Label, Comment, Alignment, LabelRef, Imm32, DebugInfo
 import cortexm3 as arm
@@ -10,12 +11,14 @@
     """
     def __init__(self, out):
         self.outs = out
+        self.logger = logging.getLogger('cgarm')
 
     def emit(self, item):
         self.outs.emit(item)
 
     def generate(self, ircode):
         assert isinstance(ircode, ir.Module)
+        self.logger.info('Generating arm code for {}'.format(ircode.name))
         # TODO: get these from linker descriptor?
         self.outs.getSection('code').address = 0x08000000
         self.outs.getSection('data').address = 0x20000000