Add Value, User, Constant

This commit is contained in:
Siu Kwan Lam 2013-01-23 15:25:04 -06:00
commit e9e1f5703d
4 changed files with 20 additions and 0 deletions

View file

@ -1,8 +1,10 @@
PYTHON = python
PYMODS = raw_ostream SmallVector Type DerivedTypes StringRef
PYMODS += Value User Constant
PYMODS += LLVMContext AssemblyAnnotationWriter Module
all: _api.so _capsule.so
_api.so _capsule.so: api.cpp capsule.cpp

View file

@ -0,0 +1,5 @@
from binding import *
from namespace import llvm
from User import User
Constant = User.Subclass()

5
newbinding/src/User.py Normal file
View file

@ -0,0 +1,5 @@
from binding import *
from namespace import llvm
from Value import Value
User = Value.Subclass()

8
newbinding/src/Value.py Normal file
View file

@ -0,0 +1,8 @@
from binding import *
from namespace import llvm
from raw_ostream import raw_ostream
from AssemblyAnnotationWriter import AssemblyAnnotationWriter
Value = llvm.Class()
print_ = Value.method(Void, raw_ostream.Ref, AssemblyAnnotationWriter.Pointer)
print_.realname = 'print'