This commit is contained in:
xushiwei
2024-05-15 08:54:29 +08:00
parent 56269bd52b
commit 7881f3a53b

View File

@@ -125,12 +125,12 @@ type aProgram struct {
rtSliceTy llvm.Type rtSliceTy llvm.Type
rtMapTy llvm.Type rtMapTy llvm.Type
anyTy Type anyTy Type
voidTy Type voidTy Type
voidPtr Type voidPtr Type
boolTy Type boolTy Type
cstrTy Type cstrTy Type
cintTy Type //cintTy Type
stringTy Type stringTy Type
uintptrTy Type uintptrTy Type
intTy Type intTy Type
@@ -335,12 +335,14 @@ func (p Program) Any() Type {
return p.anyTy return p.anyTy
} }
/*
func (p Program) CInt() Type { func (p Program) CInt() Type {
if p.cintTy == nil { // C.int if p.cintTy == nil { // C.int
p.cintTy = p.rawType(types.Typ[types.Int32]) // TODO(xsw): support 64-bit p.cintTy = p.rawType(types.Typ[types.Int32]) // TODO(xsw): support 64-bit
} }
return p.cintTy return p.cintTy
} }
*/
// Int returns int type. // Int returns int type.
func (p Program) Int() Type { func (p Program) Int() Type {