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