Start finishing up the rust_start signature transition.
This commit is contained in:
parent
7d68cbdff0
commit
e66f9e46f6
@ -7835,7 +7835,7 @@ fn trans_main_fn(@local_ctxt cx, ValueRef crate_map) {
|
||||
auto llmain =
|
||||
decl_cdecl_fn(cx.ccx.llmod, main_name, T_fn(T_main_args, T_int()));
|
||||
|
||||
auto llrust_start = decl_cdecl_fn(cx.ccx.llmod, "new_rust_start",
|
||||
auto llrust_start = decl_cdecl_fn(cx.ccx.llmod, "rust_start",
|
||||
T_fn(T_rust_start_args, T_int()));
|
||||
|
||||
auto llargc = llvm::LLVMGetParam(llmain, 0u);
|
||||
|
@ -77,7 +77,7 @@ command_line_args : public dom_owned<command_line_args>
|
||||
*/
|
||||
|
||||
extern "C" CDECL int
|
||||
new_rust_start(uintptr_t main_fn, int argc, char **argv, void* crate_map) {
|
||||
rust_start(uintptr_t main_fn, int argc, char **argv, void* crate_map) {
|
||||
|
||||
update_log_settings(crate_map, getenv("RUST_LOG"));
|
||||
rust_srv *srv = new rust_srv();
|
||||
@ -114,8 +114,8 @@ new_rust_start(uintptr_t main_fn, int argc, char **argv, void* crate_map) {
|
||||
}
|
||||
|
||||
extern "C" CDECL int
|
||||
rust_start(uintptr_t main_fn, int argc, char **argv, void* crate_map) {
|
||||
return new_rust_start(main_fn, argc, argv, crate_map);
|
||||
new_rust_start(uintptr_t main_fn, int argc, char **argv, void* crate_map) {
|
||||
return rust_start(main_fn, argc, argv, crate_map);
|
||||
}
|
||||
|
||||
//
|
||||
|
Loading…
x
Reference in New Issue
Block a user