[llvm] r331171 - [bindings] Fix dibuilder go bindings after r331114.
Benjamin Kramer via llvm-commits
llvm-commits at lists.llvm.org
Mon Apr 30 05:48:45 PDT 2018
Author: d0k
Date: Mon Apr 30 05:48:45 2018
New Revision: 331171
URL: http://llvm.org/viewvc/llvm-project?rev=331171&view=rev
Log:
[bindings] Fix dibuilder go bindings after r331114.
Modified:
llvm/trunk/bindings/go/llvm/dibuilder.go
Modified: llvm/trunk/bindings/go/llvm/dibuilder.go
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/bindings/go/llvm/dibuilder.go?rev=331171&r1=331170&r2=331171&view=diff
==============================================================================
--- llvm/trunk/bindings/go/llvm/dibuilder.go (original)
+++ llvm/trunk/bindings/go/llvm/dibuilder.go Mon Apr 30 05:48:45 2018
@@ -297,7 +297,7 @@ func (d *DIBuilder) CreateBasicType(t DI
d.ref,
name,
C.size_t(len(t.Name)),
- C.unsigned(t.SizeInBits),
+ C.ulong(t.SizeInBits),
C.unsigned(t.Encoding),
)
return Metadata{C: result}
@@ -319,7 +319,7 @@ func (d *DIBuilder) CreatePointerType(t
result := C.LLVMDIBuilderCreatePointerType(
d.ref,
t.Pointee.C,
- C.unsigned(t.SizeInBits),
+ C.ulong(t.SizeInBits),
C.unsigned(t.AlignInBits),
C.unsigned(t.AddressSpace),
name,
@@ -381,7 +381,7 @@ func (d *DIBuilder) CreateStructType(sco
C.size_t(len(t.Name)),
t.File.C,
C.unsigned(t.Line),
- C.unsigned(t.SizeInBits),
+ C.ulong(t.SizeInBits),
C.unsigned(t.AlignInBits),
C.LLVMDIFlags(t.Flags),
t.DerivedFrom.C,
@@ -424,7 +424,7 @@ func (d *DIBuilder) CreateReplaceableCom
t.File.C,
C.unsigned(t.Line),
C.unsigned(t.RuntimeLang),
- C.unsigned(t.SizeInBits),
+ C.ulong(t.SizeInBits),
C.unsigned(t.AlignInBits),
C.LLVMDIFlags(t.Flags),
uniqueID,
@@ -456,9 +456,9 @@ func (d *DIBuilder) CreateMemberType(sco
C.size_t(len(t.Name)),
t.File.C,
C.unsigned(t.Line),
- C.unsigned(t.SizeInBits),
+ C.ulong(t.SizeInBits),
C.unsigned(t.AlignInBits),
- C.unsigned(t.OffsetInBits),
+ C.ulong(t.OffsetInBits),
C.LLVMDIFlags(t.Flags),
t.Type.C,
)
@@ -488,7 +488,7 @@ func (d *DIBuilder) CreateArrayType(t DI
subscripts, length := llvmMetadataRefs(subscriptsSlice)
result := C.LLVMDIBuilderCreateArrayType(
d.ref,
- C.unsigned(t.SizeInBits),
+ C.ulong(t.SizeInBits),
C.unsigned(t.AlignInBits),
t.ElementType.C,
subscripts,
More information about the llvm-commits
mailing list