Support -C passes in NewPM
And report an error if parsing the additional pass pipeline fails. Threading through the error accounts for most of the changes here.
This commit is contained in:
parent
5519cbfe33
commit
c2b15a6b64
9 changed files with 60 additions and 20 deletions
|
@ -72,7 +72,7 @@ impl<B: WriteBackendMethods> LtoModuleCodegen<B> {
|
|||
let module = module.take().unwrap();
|
||||
{
|
||||
let config = cgcx.config(module.kind);
|
||||
B::run_lto_pass_manager(cgcx, &module, config, false);
|
||||
B::run_lto_pass_manager(cgcx, &module, config, false)?;
|
||||
}
|
||||
Ok(module)
|
||||
}
|
||||
|
|
|
@ -58,7 +58,7 @@ pub trait WriteBackendMethods: 'static + Sized + Clone {
|
|||
llmod: &ModuleCodegen<Self::Module>,
|
||||
config: &ModuleConfig,
|
||||
thin: bool,
|
||||
);
|
||||
) -> Result<(), FatalError>;
|
||||
}
|
||||
|
||||
pub trait ThinBufferMethods: Send + Sync {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue