TargetTransformInfo stuff doesnt work in llvm >= 3.3

This commit is contained in:
anthony cantor 2013-08-17 01:53:03 -06:00 committed by Siu Kwan Lam
commit 0e265a2cc5

View file

@ -27,7 +27,7 @@ class TestPass(unittest.TestCase):
self.assertTrue(tli.description)
pm.add(tli)
if llvm.version >= (3, 2):
if llvm.version >= (3, 2) and llvm.version < (3, 3):
tti = TargetTransformInfo.new(tm)
self.assertFalse(tti.name)
self.assertTrue(tti.description)