mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 06:14:46 +00:00
fix some things
This commit is contained in:
parent
05d2b8150f
commit
f04ad1643f
2 changed files with 18 additions and 0 deletions
|
@ -180,6 +180,10 @@ impl<'a, 'ctx, 'env> Env<'a, 'ctx, 'env> {
|
|||
ptr_int(self.context, self.ptr_bytes)
|
||||
}
|
||||
|
||||
pub fn str_list_c_abi(&self) -> IntType<'ctx> {
|
||||
crate::llvm::convert::str_list_int(self.context, self.ptr_bytes)
|
||||
}
|
||||
|
||||
pub fn small_str_bytes(&self) -> u32 {
|
||||
self.ptr_bytes * 2
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue