From: Vinson Lee Date: Mon, 11 Jul 2011 21:08:24 +0000 (-0700) Subject: gallivm: Re-enable LLVMUnionTypeKind case for llvm-2.7 only. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1844ae7e7e2285f52dc0ecd42194ccc47e3137ef;p=mesa.git gallivm: Re-enable LLVMUnionTypeKind case for llvm-2.7 only. LLVMUnionTypeKind is not in llvm-2.6, llvm-2.8, llvm-2.9, or llvm-3.0svn. --- diff --git a/src/gallium/auxiliary/gallivm/lp_bld_type.c b/src/gallium/auxiliary/gallivm/lp_bld_type.c index 11a2b055cc2..efd159f8869 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_type.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_type.c @@ -333,10 +333,10 @@ lp_typekind_name(LLVMTypeKind t) return "LLVMVectorTypeKind"; case LLVMMetadataTypeKind: return "LLVMMetadataTypeKind"; - /* Only in LLVM 2.7 and later??? +#if HAVE_LLVM == 0x0207 case LLVMUnionTypeKind: return "LLVMUnionTypeKind"; - */ +#endif default: return "unknown LLVMTypeKind"; }