mirror of
https://github.com/fluencelabs/wasmer
synced 2025-04-25 02:12:13 +00:00
Dump the contents of the object file for further analysis.
This commit is contained in:
parent
2d209385c5
commit
34122723a1
@ -198,6 +198,7 @@ impl LLVMBackend {
|
|||||||
.write_to_memory_buffer(&module, FileType::Object)
|
.write_to_memory_buffer(&module, FileType::Object)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
let mem_buf_slice = memory_buffer.as_slice();
|
let mem_buf_slice = memory_buffer.as_slice();
|
||||||
|
dbg!(&mem_buf_slice);
|
||||||
|
|
||||||
if let Some(path) = unsafe { &crate::GLOBAL_OPTIONS.obj_file } {
|
if let Some(path) = unsafe { &crate::GLOBAL_OPTIONS.obj_file } {
|
||||||
let mut file = File::create(path).unwrap();
|
let mut file = File::create(path).unwrap();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user