summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--llvm/test/MC/X86/lit.local.cfg9
1 files changed, 1 insertions, 8 deletions
diff --git a/llvm/test/MC/X86/lit.local.cfg b/llvm/test/MC/X86/lit.local.cfg
index eee568e8fdc..ad280c7cf7d 100644
--- a/llvm/test/MC/X86/lit.local.cfg
+++ b/llvm/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
OpenPOWER on IntegriCloud