aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReid Spencer <rspencer@reidspencer.com>2007-04-21 20:40:17 +0000
committerReid Spencer <rspencer@reidspencer.com>2007-04-21 20:40:17 +0000
commit40a4c61cb7aade82aa1aaf43c943fa4a463063c3 (patch)
tree53700194a8e32f77ab2d16156f05b50500fced75
parente5190d28515c48c5f4dbe34fc5a59fe8df3100e9 (diff)
downloadexternal_llvm-40a4c61cb7aade82aa1aaf43c943fa4a463063c3.zip
external_llvm-40a4c61cb7aade82aa1aaf43c943fa4a463063c3.tar.gz
external_llvm-40a4c61cb7aade82aa1aaf43c943fa4a463063c3.tar.bz2
Add the llvm_supports_target function.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36314 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--test/lib/llvm.exp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/lib/llvm.exp b/test/lib/llvm.exp
index e4a52a0..b2cb62d 100644
--- a/test/lib/llvm.exp
+++ b/test/lib/llvm.exp
@@ -218,3 +218,12 @@ proc llvm_gcc_supports_ada { } {
}
}
+proc llvm_supports_target { tgtName } {
+ global TARGETS_TO_BUILD
+ foreach target [split $TARGETS_TO_BUILD] {
+ if { [regexp $tgtName $target match] } {
+ return 1
+ }
+ }
+ return 0
+}