mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 13:59:08 +00:00
Debug LLVM IR in tests
This commit is contained in:
parent
9b58c0fb9c
commit
bbcd9c3a52
1 changed files with 4 additions and 0 deletions
|
@ -298,6 +298,10 @@ fn create_llvm_module<'a>(
|
|||
);
|
||||
}
|
||||
|
||||
if let Ok(path) = std::env::var("ROC_DEBUG_LLVM") {
|
||||
env.module.print_to_file(path).unwrap();
|
||||
}
|
||||
|
||||
// Uncomment this to see the module's optimized LLVM instruction output:
|
||||
// env.module.print_to_stderr();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue