annotate python/libs/compiler/core/value.py @ 71:5351594349b0

Moved error to core
author windel
date Fri, 02 Nov 2012 14:05:00 +0100
parents 35286e8abd03
children
rev   line source
70
35286e8abd03 Added some llvm classes
windel
parents:
diff changeset
1
35286e8abd03 Added some llvm classes
windel
parents:
diff changeset
2 class Value:
35286e8abd03 Added some llvm classes
windel
parents:
diff changeset
3 def __init__(self, vty):
35286e8abd03 Added some llvm classes
windel
parents:
diff changeset
4 self.valueType = ty
35286e8abd03 Added some llvm classes
windel
parents:
diff changeset
5 self.name = None
35286e8abd03 Added some llvm classes
windel
parents:
diff changeset
6 def getContext(self):
35286e8abd03 Added some llvm classes
windel
parents:
diff changeset
7 return self.valueType.context
35286e8abd03 Added some llvm classes
windel
parents:
diff changeset
8
35286e8abd03 Added some llvm classes
windel
parents:
diff changeset
9 def setName(self, name):
35286e8abd03 Added some llvm classes
windel
parents:
diff changeset
10 if not self.name and not name:
35286e8abd03 Added some llvm classes
windel
parents:
diff changeset
11 return
35286e8abd03 Added some llvm classes
windel
parents:
diff changeset
12 self.name = name
35286e8abd03 Added some llvm classes
windel
parents:
diff changeset
13
35286e8abd03 Added some llvm classes
windel
parents:
diff changeset
14 if self.st:
35286e8abd03 Added some llvm classes
windel
parents:
diff changeset
15 pass
35286e8abd03 Added some llvm classes
windel
parents:
diff changeset
16 else:
35286e8abd03 Added some llvm classes
windel
parents:
diff changeset
17 pass
35286e8abd03 Added some llvm classes
windel
parents:
diff changeset
18