llvm-ar: Clean up memory management with OwningPtr.
[oota-llvm.git] / test / CodeGen / MSP430 / lit.local.cfg
index b9b654deba5cee822dfa63368854cef3c43dc251..0ca9fc9c6912c93f4d08e957a1086f870047ae7f 100644 (file)
@@ -1,13 +1,6 @@
-config.suffixes = ['.ll', '.c', '.cpp']
+config.suffixes = ['.ll', '.c', '.cpp', '.test']
 
-def getRoot(config):
-    if not config.parent:
-        return config
-    return getRoot(config.parent)
-
-root = getRoot(config)
-
-targets = set(root.targets_to_build.split())
+targets = set(config.root.targets_to_build.split())
 if not 'MSP430' in targets:
     config.unsupported = True