cover integers, floats, bool, array, complex

This commit is contained in:
Li Jie
2024-09-15 10:48:37 +08:00
parent e56647f24d
commit 4a447f5c12
2 changed files with 17 additions and 2 deletions

View File

@@ -141,8 +141,7 @@ func (b diBuilder) createType(ty Type, pos token.Position) DIType {
})
return &aDIType{typ}
} else {
encoding = llvm.DW_ATE_unsigned
panic("todo: basic type")
panic(fmt.Errorf("can't create debug info of basic type: %v, %T", ty.RawType(), ty.RawType()))
}
typ = b.di.CreateBasicType(llvm.DIBasicType{