Mercurial > lcfOS
view python/ir/context.py @ 161:956f8e5ee48a
Improvements to code edit
author | Windel Bouwman |
---|---|
date | Sat, 09 Mar 2013 15:52:55 +0100 |
parents | 4e79484a9d47 |
children |
line wrap: on
line source
from .llvmtype import IntegerType, llvmType, typeID, FunctionType class Context: """ Global context """ def __init__(self): self.Int8Type = IntegerType(8) self.Int16Type = IntegerType(16) self.Int32Type = IntegerType(32) self.Int64Type = IntegerType(64) self.VoidType = llvmType(typeID.Void) self.DoubleType = llvmType(typeID.Double)