Skip to content

Commit ee61083

Browse files
committed
fix space in generated loongarch
1 parent c6b2f48 commit ee61083

File tree

1 file changed

+2
-2
lines changed
  • crates/stdarch-gen-loongarch/src

1 file changed

+2
-2
lines changed

crates/stdarch-gen-loongarch/src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ fn gen_bind_body(
280280
let fn_output = if out_t.to_lowercase() == "void" {
281281
String::new()
282282
} else {
283-
format!("-> {}", type_to_rst(out_t, is_store))
283+
format!(" -> {}", type_to_rst(out_t, is_store))
284284
};
285285
let fn_inputs = match para_num {
286286
1 => format!("(a: {})", type_to_rst(in_t[0], is_store)),
@@ -304,7 +304,7 @@ fn gen_bind_body(
304304
),
305305
_ => panic!("unsupported parameter number"),
306306
};
307-
format!("fn __{current_name}{fn_inputs} {fn_output};")
307+
format!("fn __{current_name}{fn_inputs}{fn_output};")
308308
};
309309
let function = format!(
310310
r#" #[link_name = "llvm.loongarch.{}"]

0 commit comments

Comments
 (0)