From 37b3f25e198a954e51d754a29048219883a3474e Mon Sep 17 00:00:00 2001 From: Daniel Dunbar Date: Wed, 3 Feb 2010 18:43:46 +0000 Subject: [PATCH] Add llvm_supports_darwin_and_target to DejaGNU as well, I'd almost forgotten it ever existed. :) llvm-svn: 95230 --- test/lib/llvm.exp | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/lib/llvm.exp b/test/lib/llvm.exp index 2c1bef939af..319cc11c710 100644 --- a/test/lib/llvm.exp +++ b/test/lib/llvm.exp @@ -301,6 +301,16 @@ proc llvm_supports_target { tgtName } { 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 } {