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.
(cherry picked from commit 1844ae7e7e)
This commit is contained in:
Vinson Lee 2011-07-11 14:08:24 -07:00 committed by Brian Paul
parent 2c1998b3b9
commit 32f4a83fe8

View file

@ -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";
}