Example #1
0
File: debug.go Project: hinike/llgo
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),
	})
}
Example #2
0
func Pointer(path string, st reflect.StructTag, u *types.Pointer) IObj {
	return dump(path, u.Elem(), st)
}