Update go bindings for 2dea3f1298

This commit is contained in:
Benjamin Kramer 2020-04-22 19:02:01 +02:00
parent 4b33c935db
commit 6bec6a9755
2 changed files with 20 additions and 17 deletions

View File

@ -224,21 +224,22 @@ const (
//------------------------------------------------------------------------- //-------------------------------------------------------------------------
const ( const (
VoidTypeKind TypeKind = C.LLVMVoidTypeKind VoidTypeKind TypeKind = C.LLVMVoidTypeKind
FloatTypeKind TypeKind = C.LLVMFloatTypeKind FloatTypeKind TypeKind = C.LLVMFloatTypeKind
DoubleTypeKind TypeKind = C.LLVMDoubleTypeKind DoubleTypeKind TypeKind = C.LLVMDoubleTypeKind
X86_FP80TypeKind TypeKind = C.LLVMX86_FP80TypeKind X86_FP80TypeKind TypeKind = C.LLVMX86_FP80TypeKind
FP128TypeKind TypeKind = C.LLVMFP128TypeKind FP128TypeKind TypeKind = C.LLVMFP128TypeKind
PPC_FP128TypeKind TypeKind = C.LLVMPPC_FP128TypeKind PPC_FP128TypeKind TypeKind = C.LLVMPPC_FP128TypeKind
LabelTypeKind TypeKind = C.LLVMLabelTypeKind LabelTypeKind TypeKind = C.LLVMLabelTypeKind
IntegerTypeKind TypeKind = C.LLVMIntegerTypeKind IntegerTypeKind TypeKind = C.LLVMIntegerTypeKind
FunctionTypeKind TypeKind = C.LLVMFunctionTypeKind FunctionTypeKind TypeKind = C.LLVMFunctionTypeKind
StructTypeKind TypeKind = C.LLVMStructTypeKind StructTypeKind TypeKind = C.LLVMStructTypeKind
ArrayTypeKind TypeKind = C.LLVMArrayTypeKind ArrayTypeKind TypeKind = C.LLVMArrayTypeKind
PointerTypeKind TypeKind = C.LLVMPointerTypeKind PointerTypeKind TypeKind = C.LLVMPointerTypeKind
VectorTypeKind TypeKind = C.LLVMVectorTypeKind MetadataTypeKind TypeKind = C.LLVMMetadataTypeKind
MetadataTypeKind TypeKind = C.LLVMMetadataTypeKind TokenTypeKind TypeKind = C.LLVMTokenTypeKind
TokenTypeKind TypeKind = C.LLVMTokenTypeKind FixedVectorTypeKind TypeKind = C.LLVMFixedVectorTypeKind
ScalableVectorTypeKind TypeKind = C.LLVMScalableVectorTypeKind
) )
//------------------------------------------------------------------------- //-------------------------------------------------------------------------

View File

@ -40,10 +40,12 @@ func (t TypeKind) String() string {
return "ArrayTypeKind" return "ArrayTypeKind"
case PointerTypeKind: case PointerTypeKind:
return "PointerTypeKind" return "PointerTypeKind"
case VectorTypeKind:
return "VectorTypeKind"
case MetadataTypeKind: case MetadataTypeKind:
return "MetadataTypeKind" return "MetadataTypeKind"
case FixedVectorTypeKind:
return "FixedVectorTypeKind"
case ScalableVectorTypeKind:
return "ScalableVectorTypeKind"
} }
panic("unreachable") panic("unreachable")
} }