Address concerns in pullrequests.
This commit is contained in:
@@ -211,10 +211,12 @@ impl Backend for FaerieBackend {
|
||||
ref data_decls,
|
||||
ref function_relocs,
|
||||
ref data_relocs,
|
||||
section: ref datasection,
|
||||
ref custom_segment_section,
|
||||
} = data_ctx.description();
|
||||
|
||||
assert!(datasection.is_none(), "Custom sections not supported");
|
||||
if let Some((segment, section)) = custom_segment_section {
|
||||
return Err(cranelift_module::ModuleError::Backend(anyhow::anyhow!("Custom section not supported by cranelift-faerie: `{}:{}`", segment, section)));
|
||||
}
|
||||
|
||||
for &(offset, id) in function_relocs {
|
||||
let to = &namespace.get_function_decl(&function_decls[id]).name;
|
||||
|
||||
Reference in New Issue
Block a user