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