Remove llvm-gcc and various compiler handling from llvm. It's not needed

here anymore and has been migrated to the test-suite project.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@140216 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher
2011-09-20 23:58:15 +00:00
parent 5663344127
commit eeef9e8180
5 changed files with 15 additions and 470 deletions

View File

@@ -1,5 +1,5 @@
load_lib llvm.exp
if { [llvm_supports_target X86] && [llvm_gcc_supports c] } {
if { [llvm_supports_target X86] } {
RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp,s}]]
}

View File

@@ -249,34 +249,6 @@ proc RunLLVMTests { test_source_files } {
}
}
# This procedure provides an interface to check the LLVMGCC_LANGS makefile
# variable to see if llvm-gcc supports compilation of a particular language.
proc llvm_gcc_supports { lang } {
global llvmgcc llvmgcc_langs
# validate the language choices and determine the name of the compiler
# component responsible for determining if the compiler has been built.
switch "$lang" {
ada { set file gnat1 }
c { set file cc1 }
c++ { set file cc1plus }
objc { set file cc1obj }
obj-c++ { set file cc1objplus }
fortran { set file f951 }
default { return 0 }
}
foreach supported_lang [split "$llvmgcc_langs" ,] {
if { "$lang" == "$supported_lang" } {
# FIXME: Knowing it is configured is not enough. We should do two more
# checks here. First, we need to run llvm-gcc -print-prog-name=$file to
# get the path to the compiler. If we don't get a path, the language isn't
# properly configured or built. If we do get a path, we should check to
# make sure that it is executable and perhaps even try executing it.
return 1;
}
}
return 0;
}
# This procedure provides an interface to check the TARGETS_TO_BUILD makefile
# variable to see if a particular target has been configured to build. This
# helps avoid running tests for targets that aren't available.

View File

@@ -235,10 +235,6 @@ def llvm_supports_target(name):
def llvm_supports_darwin_and_target(name):
return 'darwin' in config.target_triple and llvm_supports_target(name)
langs = set([s.strip() for s in site_exp['llvmgcc_langs'].split(',')])
def llvm_gcc_supports(name):
return name.strip() in langs
bindings = set([s.strip() for s in site_exp['llvm_bindings'].split(',')])
def llvm_supports_binding(name):
return name.strip() in bindings