From 25953bfb0763047df28c01057183493490667531 Mon Sep 17 00:00:00 2001 From: Eli Bendersky Date: Thu, 13 Dec 2012 02:03:46 +0000 Subject: [PATCH] Make this Lit config file a bit slimmer git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@170083 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/MC/X86/lit.local.cfg | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/test/MC/X86/lit.local.cfg b/test/MC/X86/lit.local.cfg index eee568e8fdc..ad280c7cf7d 100644 --- a/test/MC/X86/lit.local.cfg +++ b/test/MC/X86/lit.local.cfg @@ -1,12 +1,5 @@ config.suffixes = ['.ll', '.c', '.cpp', '.s'] -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 'X86' in targets: config.unsupported = True -- 2.34.1