diff python/libs/compiler/core/value.py @ 70:35286e8abd03

Added some llvm classes
author windel
date Mon, 29 Oct 2012 20:24:29 +0100
parents
children
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/python/libs/compiler/core/value.py	Mon Oct 29 20:24:29 2012 +0100
@@ -0,0 +1,18 @@
+
+class Value:
+   def __init__(self, vty):
+      self.valueType = ty
+      self.name = None
+   def getContext(self):
+      return self.valueType.context
+
+   def setName(self, name):
+      if not self.name and not name:
+         return
+      self.name = name
+
+      if self.st:
+         pass
+      else:
+         pass
+