Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement aarch64 ABI for compiler-llvm. #1754

Merged
merged 8 commits into from
Oct 23, 2020
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ endif

ifeq ($(ARCH), aarch64)
test_compilers_engines += cranelift-jit
ifneq (, $(findstring llvm,$(compilers)))
test_compilers_engines += llvm-native
endif
endif

compilers := $(filter-out ,$(compilers))
Expand Down
4 changes: 2 additions & 2 deletions lib/compiler-llvm/src/compiler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down Expand Up @@ -267,7 +267,7 @@ impl Compiler for LLVMCompiler {
self.config(),
memory_styles,
&table_styles,
&mut ShortNames {},
&ShortNames {},
)
},
)
Expand Down
Loading