r196797 - clang/test/lit.cfg: Remove get_llc_props. check-clang itself no longer invokes llc.
NAKAMURA Takumi
geek4civic at gmail.com
Mon Dec 9 11:04:14 PST 2013
Author: chapuni
Date: Mon Dec 9 13:04:14 2013
New Revision: 196797
URL: http://llvm.org/viewvc/llvm-project?rev=196797&view=rev
Log:
clang/test/lit.cfg: Remove get_llc_props. check-clang itself no longer invokes llc.
Only a few tests depend on llc yet.
Modified:
cfe/trunk/test/lit.cfg
Modified: cfe/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/lit.cfg?rev=196797&r1=196796&r2=196797&view=diff
==============================================================================
--- cfe/trunk/test/lit.cfg (original)
+++ cfe/trunk/test/lit.cfg Mon Dec 9 13:04:14 2013
@@ -292,38 +292,6 @@ if not re.match(r'^x86_64.*-(win32|mingw
if not re.match(r'.*-(cygwin|mingw32)$', config.target_triple):
config.available_features.add('clang-driver')
-# Registered Targets
-def get_llc_props(tool):
- set_of_targets = set()
- enable_assertions = False
-
- cmd = subprocess.Popen([tool, '-version'], stdout=subprocess.PIPE)
-
- # Parse the stdout to get the list of registered targets.
- parse_targets = False
- for line in cmd.stdout:
- line = line.decode('ascii')
- if parse_targets:
- m = re.match( r'(.*) - ', line)
- if m is not None:
- set_of_targets.add(m.group(1).strip() + '-registered-target')
- else:
- break
- elif "Registered Targets:" in line:
- parse_targets = True
-
- if re.search(r'with assertions', line):
- enable_assertions = True
-
- return {"set_of_targets": set_of_targets,
- "enable_assertions": enable_assertions}
-
-llc_props = get_llc_props(os.path.join(llvm_tools_dir, 'llc'))
-if len(llc_props['set_of_targets']) > 0:
- config.available_features.update(llc_props['set_of_targets'])
-else:
- lit_config.fatal('No Targets Registered with the LLVM Tools!')
-
# Returns set of available features, registered-target(s) and asserts.
def get_llvm_config_props():
set_of_features = set()
More information about the cfe-commits
mailing list