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}
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,
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,
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,
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,
)
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,