diff python/ppci/irutils.py @ 394:988f3fb861e4

c3 code generator rewrite
author Windel Bouwman
date Thu, 22 May 2014 08:14:12 +0200
parents e84047f29c78
children
line wrap: on
line diff
--- a/python/ppci/irutils.py	Sat May 17 21:17:40 2014 +0200
+++ b/python/ppci/irutils.py	Thu May 22 08:14:12 2014 +0200
@@ -210,7 +210,7 @@
     def setModule(self, m):
         self.m = m
 
-    def newFunction(self, name):
+    def new_function(self, name):
         f = ir.Function(name)
         self.m.add_function(f)
         return f
@@ -240,6 +240,7 @@
 
 
 class Verifier:
+    """ Checks an ir module for correctness """
     def verify(self, module):
         """ Verifies a module for some sanity """
         assert isinstance(module, ir.Module)