[llvm-commits] [llvm] r170083 - /llvm/trunk/test/MC/X86/lit.local.cfg
Eli Bendersky
eliben at google.com
Wed Dec 12 18:03:47 PST 2012
Author: eliben
Date: Wed Dec 12 20:03:46 2012
New Revision: 170083
URL: http://llvm.org/viewvc/llvm-project?rev=170083&view=rev
Log:
Make this Lit config file a bit slimmer
Modified:
llvm/trunk/test/MC/X86/lit.local.cfg
Modified: llvm/trunk/test/MC/X86/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/MC/X86/lit.local.cfg?rev=170083&r1=170082&r2=170083&view=diff
==============================================================================
--- llvm/trunk/test/MC/X86/lit.local.cfg (original)
+++ llvm/trunk/test/MC/X86/lit.local.cfg Wed Dec 12 20:03:46 2012
@@ -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
More information about the llvm-commits
mailing list