forked from OSchip/llvm-project
[Bindings][Go] Fix go.test failure due to missing argument
go.test failed with error ``` /tmp/gopath431502532/src/llvm.org/llvm/bindings/go/llvm/dibuilder.go:514:40: not enough arguments in call to _Cfunc_LLVMDIBuilderCreateTypedef have (_Ctype_LLVMDIBuilderRef, _Ctype_LLVMMetadataRef, *_Ctype_char, _Ctype_ulong, _Ctype_LLVMMetadataRef, _Ctype_uint, _Ctype_LLVMMetadataRef) want (*_Ctype_struct_LLVMOpaqueDIBuilder, *_Ctype_struct_LLVMOpaqueMetadata, *_Ctype_char, _Ctype_ulong, *_Ctype_struct_LLVMOpaqueMetadata, _Ctype_uint, *_Ctype_struct_LLVMOpaqueMetadata, _Ctype_uint) ``` This patch fixes above error. Differential Revision: https://reviews.llvm.org/D70360
This commit is contained in:
parent
a921f587f7
commit
88235812a7
|
@ -500,11 +500,12 @@ func (d *DIBuilder) CreateArrayType(t DIArrayType) Metadata {
|
|||
|
||||
// DITypedef holds the values for creating typedef type debug metadata.
|
||||
type DITypedef struct {
|
||||
Type Metadata
|
||||
Name string
|
||||
File Metadata
|
||||
Line int
|
||||
Context Metadata
|
||||
Type Metadata
|
||||
Name string
|
||||
File Metadata
|
||||
Line int
|
||||
Context Metadata
|
||||
AlignInBits int
|
||||
}
|
||||
|
||||
// CreateTypedef creates typedef type debug metadata.
|
||||
|
@ -519,6 +520,7 @@ func (d *DIBuilder) CreateTypedef(t DITypedef) Metadata {
|
|||
t.File.C,
|
||||
C.unsigned(t.Line),
|
||||
t.Context.C,
|
||||
C.unsigned(t.AlignInBits),
|
||||
)
|
||||
return Metadata{C: result}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue