summaryrefslogtreecommitdiffstats
path: root/llvm/test/CodeGen/CBackend/X86
diff options
context:
space:
mode:
authorEli Bendersky <eli.bendersky@intel.com>2012-03-25 09:02:19 +0000
committerEli Bendersky <eli.bendersky@intel.com>2012-03-25 09:02:19 +0000
commitf33086052dfe986c30d296dcb19c10a595f0775d (patch)
tree949f93c783e2d606fe47aad9521cd7cb32f4a561 /llvm/test/CodeGen/CBackend/X86
parente9ca55ea9b3fb2b3301499d89336b96945521f91 (diff)
downloadbcm5719-llvm-f33086052dfe986c30d296dcb19c10a595f0775d.tar.gz
bcm5719-llvm-f33086052dfe986c30d296dcb19c10a595f0775d.zip
Continue cleanup of LIT, getting rid of the remaining artifacts from dejagnu
* Removed test/lib/llvm.exp - it is no longer needed * Deleted the dg.exp reading code from test/lit.cfg. There are no dg.exp files left in the test suite so this code is no longer required. test/lit.cfg is now much shorter and clearer * Removed a lot of duplicate code in lit.local.cfg files that need access to the root configuration, by adding a "root" attribute to the TestingConfig object. This attribute is dynamically computed to provide the same information as was previously provided by the custom getRoot functions. * Documented the config.root attribute in docs/CommandGuide/lit.pod llvm-svn: 153408
Diffstat (limited to 'llvm/test/CodeGen/CBackend/X86')
-rw-r--r--llvm/test/CodeGen/CBackend/X86/lit.local.cfg9
1 files changed, 1 insertions, 8 deletions
diff --git a/llvm/test/CodeGen/CBackend/X86/lit.local.cfg b/llvm/test/CodeGen/CBackend/X86/lit.local.cfg
index 037d8c3910d..f2d1cc7d7b0 100644
--- a/llvm/test/CodeGen/CBackend/X86/lit.local.cfg
+++ b/llvm/test/CodeGen/CBackend/X86/lit.local.cfg
@@ -1,13 +1,6 @@
config.suffixes = ['.ll', '.c', '.cpp']
-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 'CBackend' in targets or not 'X86' in targets:
config.unsupported = True
OpenPOWER on IntegriCloud