annotate python/ppci/core/value.py @ 101:af0d7913677a

Fixes and splitting into 3 stage
author windel
date Mon, 24 Dec 2012 17:55:08 +0100
parents 4a37d6992bd3
children ed230e947dc6
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