]> granicus.if.org Git - clang/commitdiff
clang/test/lit.cfg: Remove get_llc_props. check-clang itself no longer invokes llc.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 9 Dec 2013 19:04:14 +0000 (19:04 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Mon, 9 Dec 2013 19:04:14 +0000 (19:04 +0000)
Only a few tests depend on llc yet.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196797 91177308-0d34-0410-b5e6-96231b3b80d8

test/lit.cfg

index 807b231358ac146b3bcbb86bfd17a79300cd4c7e..7082d1e518550650b46901febc2e9a973f9b3afe 100644 (file)
@@ -292,38 +292,6 @@ if not re.match(r'^x86_64.*-(win32|mingw32)$', config.target_triple):
 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()