annotate python/ppci/core/context.py @ 137:0a540ce31cd5
Added debug toolbar and spaced hexedit
author |
Windel Bouwman |
date |
Fri, 25 Jan 2013 23:47:34 +0100 |
parents |
9e552d34bd60 |
children |
|
rev |
line source |
104
|
1 from .llvmtype import IntegerType, llvmType, typeID, FunctionType
|
70
|
2
|
|
3 class Context:
|
104
|
4 """ Global context """
|
|
5 def __init__(self):
|
110
|
6 self.Int8Type = IntegerType(8)
|
|
7 self.Int16Type = IntegerType(16)
|
|
8 self.Int32Type = IntegerType(32)
|
|
9 self.Int64Type = IntegerType(64)
|
|
10 self.VoidType = llvmType(typeID.Void)
|
|
11 self.DoubleType = llvmType(typeID.Double)
|
70
|
12
|