Changes in directory llvm/test/lib:
llvm.exp updated: 1.19 -> 1.20 --- Log message: Add the llvm_supports_target function. --- Diffs of the changes: (+9 -0) llvm.exp | 9 +++++++++ 1 files changed, 9 insertions(+) Index: llvm/test/lib/llvm.exp diff -u llvm/test/lib/llvm.exp:1.19 llvm/test/lib/llvm.exp:1.20 --- llvm/test/lib/llvm.exp:1.19 Sat Apr 21 15:20:47 2007 +++ llvm/test/lib/llvm.exp Sat Apr 21 15:40:17 2007 @@ -218,3 +218,12 @@ } } +proc llvm_supports_target { tgtName } { + global TARGETS_TO_BUILD + foreach target [split $TARGETS_TO_BUILD] { + if { [regexp $tgtName $target match] } { + return 1 + } + } + return 0 +} _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits