Updated for LLVM 2.7 (will not work with LLVM 2.6). Work-in-progress.
git-svn-id: http://llvm-py.googlecode.com/svn/trunk@86 8d1e9007-1d4e-0410-b67e-1979fd6579aa
This commit is contained in:
parent
43998cc2df
commit
d51eb76fec
10 changed files with 1136 additions and 1012 deletions
|
|
@ -573,8 +573,10 @@ def do_passmanager():
|
|||
print " Testing class PassManager"
|
||||
pm = PassManager.new()
|
||||
pm.add(TargetData.new(''))
|
||||
for i in range(1, 10):
|
||||
pm.add(i)
|
||||
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)
|
||||
pm.run(Module.new('a'))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue