[llvm-commits] [llvm] r95230 - /llvm/trunk/test/lib/llvm.exp
Daniel Dunbar
daniel at zuster.org
Wed Feb 3 10:43:46 PST 2010
Author: ddunbar
Date: Wed Feb 3 12:43:46 2010
New Revision: 95230
URL: http://llvm.org/viewvc/llvm-project?rev=95230&view=rev
Log:
Add llvm_supports_darwin_and_target to DejaGNU as well, I'd almost forgotten it
ever existed. :)
Modified:
llvm/trunk/test/lib/llvm.exp
Modified: llvm/trunk/test/lib/llvm.exp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lib/llvm.exp?rev=95230&r1=95229&r2=95230&view=diff
==============================================================================
--- llvm/trunk/test/lib/llvm.exp (original)
+++ llvm/trunk/test/lib/llvm.exp Wed Feb 3 12:43:46 2010
@@ -301,6 +301,16 @@
return 0
}
+proc llvm_supports_darwin_and_target { tgtName } {
+ global target_triplet
+ if { [ llvm_supports_target $tgtName ] } {
+ if { [regexp darwin $target_triplet match] } {
+ return 1
+ }
+ }
+ return 0
+}
+
# This procedure provides an interface to check the BINDINGS_TO_BUILD makefile
# variable to see if a particular binding has been configured to build.
proc llvm_supports_binding { name } {
More information about the llvm-commits
mailing list