diff options
| author | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2022-11-03 13:48:16 +0000 |
|---|---|---|
| committer | bjorn3 <17426603+bjorn3@users.noreply.github.com> | 2022-11-03 13:48:16 +0000 |
| commit | 7941cba900a7bc958b45d5ceda1a0265901ba656 (patch) | |
| tree | afe1fd6c16f89a69b21f50ed66813435e92b0f34 | |
| parent | 449f95b7a50fd35b6fbe50ff7e06d1b16b130aa8 (diff) | |
Remove some commented out code
| -rw-r--r-- | example/mini_core_hello_world.rs | 2 | ||||
| -rw-r--r-- | src/constant.rs | 5 |
2 files changed, 0 insertions, 7 deletions
diff --git a/example/mini_core_hello_world.rs b/example/mini_core_hello_world.rs index 215d3556a17..c00f8a2e0cd 100644 --- a/example/mini_core_hello_world.rs +++ b/example/mini_core_hello_world.rs @@ -171,8 +171,6 @@ fn main() { assert_eq!(slice_ptr as usize % 4, 0); - //return; - unsafe { printf("Hello %s\n\0" as *const str as *const i8, "printf\0" as *const str as *const i8); diff --git a/src/constant.rs b/src/constant.rs index 148b66d959e..cd30bcf98f7 100644 --- a/src/constant.rs +++ b/src/constant.rs @@ -28,9 +28,7 @@ impl ConstantCx { } pub(crate) fn finalize(mut self, tcx: TyCtxt<'_>, module: &mut dyn Module) { - //println!("todo {:?}", self.todo); define_all_allocs(tcx, module, &mut self); - //println!("done {:?}", self.done); self.done.clear(); } } @@ -358,8 +356,6 @@ fn define_all_allocs(tcx: TyCtxt<'_>, module: &mut dyn Module, cx: &mut Constant (data_id, alloc, None) } TodoItem::Static(def_id) => { - //println!("static {:?}", def_id); - let section_name = tcx.codegen_fn_attrs(def_id).link_section; let alloc = tcx.eval_static_initializer(def_id).unwrap(); @@ -369,7 +365,6 @@ fn define_all_allocs(tcx: TyCtxt<'_>, module: &mut dyn Module, cx: &mut Constant } }; - //("data_id {}", data_id); if cx.done.contains(&data_id) { continue; } |
