Migrate to LLVM 2.8 (rc2)

git-svn-id: http://llvm-py.googlecode.com/svn/trunk@96 8d1e9007-1d4e-0410-b67e-1979fd6579aa
This commit is contained in:
mdevan.foobar 2010-09-30 13:22:13 +00:00
commit ab4ef428b6
12 changed files with 940 additions and 832 deletions

View file

@ -576,10 +576,11 @@ def do_passmanager():
print " Testing class PassManager"
pm = PassManager.new()
pm.add(TargetData.new(''))
for i in range(1, 90):
if i not in (PASS_OPTIMAL_EDGE_PROFILER,
PASS_EDGE_PROFILER, PASS_PROFILE_LOADER, PASS_AAEVAL):
pm.add(i)
for i in [getattr(llvm.passes, x) for x in \
dir(llvm.passes) if x.startswith('PASS_') and x not in \
('PASS_OPTIMAL_EDGE_PROFILER', 'PASS_EDGE_PROFILER', \
'PASS_PROFILE_LOADER', 'PASS_AAEVAL')]:
pm.add(i)
pm.run(Module.new('a'))