pub fn compile<M: Module>(
emitter: &mut Emitter<M>,
program: &Program,
locate: &dyn Fn(Span) -> SourceLocation,
) -> Result<DataId, CodegenError>Expand description
Compiles program into emitter, and returns its nifty_rt::ProgramDesc. locate
says where each span is, for the errors the app may report.
§Errors
When the program has errors, or Cranelift can’t compile it.