Organize code layout
This commit is contained in:
parent
5c1e8985a1
commit
d0935fe533
14 changed files with 22 additions and 11 deletions
13
newbinding/src/DerivedTypes.py
Normal file
13
newbinding/src/DerivedTypes.py
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
from binding import *
|
||||
from namespace import llvm
|
||||
from LLVMContext import LLVMContext
|
||||
from Type import Type
|
||||
|
||||
FunctionType = Type.Subclass()
|
||||
FunctionType.include.add('llvm/DerivedTypes.h')
|
||||
|
||||
get = FunctionType.staticmethod(FunctionType.Pointer, Type.Pointer, Bool.From(bool))
|
||||
isVarArg = FunctionType.method(Bool.To(bool))
|
||||
getReturnType = FunctionType.method(Type.Pointer)
|
||||
getParamType = FunctionType.method(Type.Pointer, Unsigned.From(int))
|
||||
getNumParams = FunctionType.method(Unsigned.To(int))
|
||||
Loading…
Add table
Add a link
Reference in a new issue