Compare commits
4 Commits
d5fb0ddfd9
...
50703e515d
Author | SHA1 | Date |
---|---|---|
David Mak | 50703e515d | |
David Mak | 478465e38f | |
David Mak | a324032a9d | |
David Mak | f0bf40d8b7 |
|
@ -662,7 +662,8 @@ impl Nac3 {
|
|||
pass_options.set_merge_functions(true);
|
||||
let result = main.run_passes("default<O3>", &target_machine, pass_options);
|
||||
if let Err(err) = result {
|
||||
panic!("Failed to run optimization for module `main`\n{}", err.to_string());
|
||||
println!("Failed to run optimization for module `main`\n{}", err.to_string());
|
||||
panic!();
|
||||
}
|
||||
|
||||
link_fn(&main)
|
||||
|
|
|
@ -334,9 +334,10 @@ impl WorkerRegistry {
|
|||
|
||||
let result = module.run_passes(passes.as_str(), &target_machine, pass_options);
|
||||
if let Err(err) = result {
|
||||
panic!("Failed to run optimization for module `{}`\n{}",
|
||||
module.get_name().to_str().unwrap(),
|
||||
err.to_string());
|
||||
println!("Failed to run optimization for module `{}`\n{}",
|
||||
module.get_name().to_str().unwrap(),
|
||||
err.to_string());
|
||||
panic!();
|
||||
}
|
||||
|
||||
if self.llvm_options.emit_llvm {
|
||||
|
|
|
@ -365,7 +365,8 @@ fn main() {
|
|||
pass_options.set_merge_functions(true);
|
||||
let result = main.run_passes("default<O3>", &target_machine, pass_options);
|
||||
if let Err(err) = result {
|
||||
panic!("Failed to run optimization for module `main`\n{}", err.to_string());
|
||||
println!("Failed to run optimization for module `main`\n{}", err.to_string());
|
||||
panic!();
|
||||
}
|
||||
|
||||
target_machine
|
||||
|
|
Loading…
Reference in New Issue