1
Fork 0

Add method to get FnAbi of function pointer

This commit is contained in:
Adwin White 2024-06-20 11:08:12 +08:00
parent 4e6de37349
commit 225796a2df
4 changed files with 44 additions and 1 deletions

View file

@ -215,6 +215,9 @@ pub trait Context {
/// Get an instance ABI.
fn instance_abi(&self, def: InstanceDef) -> Result<FnAbi, Error>;
/// Get the ABI of a function pointer.
fn fn_ptr_abi(&self, fn_ptr: PolyFnSig) -> Result<FnAbi, Error>;
/// Get the layout of a type.
fn ty_layout(&self, ty: Ty) -> Result<Layout, Error>;