Refactor tier switching code

This commit is contained in:
losfair
2019-08-10 02:32:14 +08:00
parent c1619026d5
commit b8c18215aa
7 changed files with 317 additions and 273 deletions

View File

@ -287,11 +287,13 @@ impl LLVMBackend {
)
};
/*
static SIGNAL_HANDLER_INSTALLED: Once = Once::new();
SIGNAL_HANDLER_INSTALLED.call_once(|| unsafe {
crate::platform::install_signal_handler();
});
});*/
if res != LLVMResult::OK {
panic!("failed to load object")