File tree 1 file changed +0
-14
lines changed
1 file changed +0
-14
lines changed Original file line number Diff line number Diff line change @@ -149,10 +149,6 @@ pub fn create_ecx<'mir, 'tcx: 'mir>(
149
149
150
150
// Setup first stack-frame
151
151
let entry_instance = ty:: Instance :: mono ( tcx, entry_id) ;
152
- /*let entry_mir = ecx.load_mir(entry_instance.def, None)?;
153
- if main_mir.arg_count != 0 {
154
- bug!("main function must not take any arguments");
155
- }*/
156
152
157
153
// First argument is constructed later, because its skipped if the entry function uses #[start]
158
154
@@ -228,16 +224,6 @@ pub fn create_ecx<'mir, 'tcx: 'mir>(
228
224
argv
229
225
} ;
230
226
231
- /*let args: &[_] = match entry_type {
232
- EntryFnType::Main => {
233
- // First argument: pointer to `main()`.
234
- let main_ptr = ecx.memory.create_fn_alloc(FnVal::Instance(main_instance));
235
-
236
- &[Scalar::from_pointer(main_ptr, &ecx).into(), argc.into(), argv]
237
- }
238
- EntryFnType::Start => &[argc.into(), argv],
239
- };*/
240
-
241
227
// Return place (in static memory so that it does not count as leak).
242
228
let ret_place = ecx. allocate ( ecx. machine . layouts . isize , MiriMemoryKind :: Machine . into ( ) ) ?;
243
229
// Call start function.
You can’t perform that action at this time.
0 commit comments