Пример #1
0
func (d *DIBuilder) descriptorPointer(t *types.Pointer) llvm.Value {
	return d.builder.CreatePointerType(llvm.DIPointerType{
		Pointee:     d.DIType(t.Elem()),
		SizeInBits:  uint64(d.sizes.Sizeof(t) * 8),
		AlignInBits: uint64(d.sizes.Alignof(t) * 8),
	})
}
Пример #2
0
func Pointer(path string, st reflect.StructTag, u *types.Pointer) IObj {
	return dump(path, u.Elem(), st)
}