summaryrefslogtreecommitdiffstats
path: root/llvm/test/lib
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
commit9e56986407fb7c6f9e0d0752babd0f4bdab285e6 (patch)
tree96245f80b8b1aa336890de273f6b129db87f50d6 /llvm/test/lib
parentb39d96e59c62526d8532ee5e5094be4d23a65f76 (diff)
downloadbcm5719-llvm-9e56986407fb7c6f9e0d0752babd0f4bdab285e6.tar.gz
bcm5719-llvm-9e56986407fb7c6f9e0d0752babd0f4bdab285e6.zip
Add the llvm_supports_target function.
llvm-svn: 36314
Diffstat (limited to 'llvm/test/lib')
-rw-r--r--llvm/test/lib/llvm.exp9
1 files changed, 9 insertions, 0 deletions
diff --git a/llvm/test/lib/llvm.exp b/llvm/test/lib/llvm.exp
index e4a52a0c1cb..b2cb62d8e8a 100644
--- a/llvm/test/lib/llvm.exp
+++ b/llvm/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
+}
OpenPOWER on IntegriCloud