TargetTransformInfo stuff doesnt work in llvm >= 3.3
This commit is contained in:
parent
e65f6174a7
commit
0e265a2cc5
1 changed files with 1 additions and 1 deletions
|
|
@ -27,7 +27,7 @@ class TestPass(unittest.TestCase):
|
||||||
self.assertTrue(tli.description)
|
self.assertTrue(tli.description)
|
||||||
pm.add(tli)
|
pm.add(tli)
|
||||||
|
|
||||||
if llvm.version >= (3, 2):
|
if llvm.version >= (3, 2) and llvm.version < (3, 3):
|
||||||
tti = TargetTransformInfo.new(tm)
|
tti = TargetTransformInfo.new(tm)
|
||||||
self.assertFalse(tti.name)
|
self.assertFalse(tti.name)
|
||||||
self.assertTrue(tti.description)
|
self.assertTrue(tti.description)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue