Declare an anonymous function in this module.
(
&mut self,
signature: &ir::Signature,
)
| 762 | |
| 763 | /// Declare an anonymous function in this module. |
| 764 | pub fn declare_anonymous_function( |
| 765 | &mut self, |
| 766 | signature: &ir::Signature, |
| 767 | ) -> ModuleResult<FuncId> { |
| 768 | let id = self.functions.push(FunctionDeclaration { |
| 769 | name: None, |
| 770 | linkage: Linkage::Local, |
| 771 | signature: signature.clone(), |
| 772 | }); |
| 773 | Ok(id) |
| 774 | } |
| 775 | |
| 776 | /// Declare a data object in this module. |
| 777 | pub fn declare_data( |