mirror of
https://github.com/mii443/wasmer.git
synced 2025-08-24 17:29:26 +00:00
Add a get_abi(TargetMachine) method instead of creating X86_64SystemV directly.
A new Arm64Linux ABI is added but it's an unedited copy of the X86_64SystemV one so far. A bunch of cleanups from clippy. Use matches! more, don't pass &Box<dyn Abi>.
This commit is contained in:
@ -59,7 +59,7 @@ impl SymbolRegistry for ShortNames {
|
||||
Ok(v) => v,
|
||||
Err(_) => return None,
|
||||
};
|
||||
match ty.chars().nth(0).unwrap() {
|
||||
match ty.chars().next().unwrap() {
|
||||
'f' => Some(Symbol::LocalFunction(LocalFunctionIndex::from_u32(idx))),
|
||||
's' => Some(Symbol::Section(SectionIndex::from_u32(idx))),
|
||||
't' => Some(Symbol::FunctionCallTrampoline(SignatureIndex::from_u32(
|
||||
@ -267,7 +267,7 @@ impl Compiler for LLVMCompiler {
|
||||
self.config(),
|
||||
memory_styles,
|
||||
&table_styles,
|
||||
&mut ShortNames {},
|
||||
&ShortNames {},
|
||||
)
|
||||
},
|
||||
)
|
||||
|
Reference in New Issue
Block a user