Clippy lint and cleanup

This commit is contained in:
Brendan Hansknecht 2021-08-24 19:10:42 -07:00
parent 3badca4581
commit 5066b19901
3 changed files with 19 additions and 16 deletions

View file

@ -75,6 +75,9 @@ pub trait CallConv<GeneralReg: RegTrait, FloatReg: RegTrait> {
field_layouts: &[Layout<'a>],
ret_reg: Option<GeneralReg>,
) -> Result<(), String>;
// returns true if the layout should be returned via an argument pointer.
fn returns_via_arg_pointer(ret_layout: &Layout) -> Result<bool, String>;
}
/// Assembler contains calls to the backend assembly generator.