From 34122723a16f94bbfe00137d690b6c45a4abe656 Mon Sep 17 00:00:00 2001 From: Nick Lewycky Date: Sat, 14 Sep 2019 00:12:00 -0700 Subject: [PATCH] Dump the contents of the object file for further analysis. --- lib/llvm-backend/src/backend.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/llvm-backend/src/backend.rs b/lib/llvm-backend/src/backend.rs index 682bd7278..5fe7722de 100644 --- a/lib/llvm-backend/src/backend.rs +++ b/lib/llvm-backend/src/backend.rs @@ -198,6 +198,7 @@ impl LLVMBackend { .write_to_memory_buffer(&module, FileType::Object) .unwrap(); let mem_buf_slice = memory_buffer.as_slice(); + dbg!(&mem_buf_slice); if let Some(path) = unsafe { &crate::GLOBAL_OPTIONS.obj_file } { let mut file = File::create(path).unwrap();