diff python/ppci/ir.py @ 363:396e5cefba13

Removed debuginfo instruction
author Windel Bouwman
date Sun, 16 Mar 2014 11:28:47 +0100
parents 5477e499b039
children c49459768aaa
line wrap: on
line diff
--- a/python/ppci/ir.py	Sat Mar 15 10:56:34 2014 +0100
+++ b/python/ppci/ir.py	Sun Mar 16 11:28:47 2014 +0100
@@ -34,10 +34,10 @@
     def add_variable(self, v):
         self.variables.append(v)
 
-    def getVariables(self):
+    def get_variables(self):
         return self.variables
 
-    Variables = property(getVariables)
+    Variables = property(get_variables)
 
     def getFunctions(self):
         return self.functions
@@ -286,6 +286,11 @@
         return 'Local {}'.format(self.name)
 
 
+class GlobalVariable(Variable):
+    def __repr__(self):
+        return 'Global {}'.format(self.name)
+
+
 class Parameter(Variable):
     def __repr__(self):
         return 'Param {}'.format(self.name)