From: Eli Bendersky Date: Thu, 13 Dec 2012 02:03:46 +0000 (+0000) Subject: Make this Lit config file a bit slimmer X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=25953bfb0763047df28c01057183493490667531;p=oota-llvm.git 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 --- 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