Added tests for bitcode.
Updated CHANGELOG, inline docs.
Switched to absolute imports.
Added all passes to extra.{cpp,h}\!
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@31 8d1e9007-1d4e-0410-b67e-1979fd6579aa
This commit is contained in:
parent
392f2e7e79
commit
fc3f11d899
10 changed files with 219 additions and 14 deletions
|
|
@ -34,6 +34,23 @@ def do_module():
|
|||
except LLVMException:
|
||||
pass
|
||||
|
||||
class strstream(object):
|
||||
def __init__(self):
|
||||
self.s = ''
|
||||
|
||||
def write(self, data):
|
||||
self.s += data
|
||||
|
||||
def read(self):
|
||||
return self.s
|
||||
|
||||
ss = strstream()
|
||||
m2 = Module.new('test')
|
||||
m2.add_type_name('myint', ti)
|
||||
m2.to_bitcode(ss)
|
||||
m3 = Module.from_bitcode(ss)
|
||||
t = m2 == m3
|
||||
|
||||
|
||||
def do_type():
|
||||
print " Testing class Type"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue