mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 15:21:12 +00:00
DCE unused functions everywhere
This commit is contained in:
parent
58246ad572
commit
b6433f872a
3 changed files with 22 additions and 2 deletions
|
@ -170,12 +170,12 @@ pub fn gen_from_mono_module(
|
|||
.expect("Writing .o file failed");
|
||||
}
|
||||
|
||||
struct FunctionIterator<'ctx> {
|
||||
pub struct FunctionIterator<'ctx> {
|
||||
next: Option<FunctionValue<'ctx>>,
|
||||
}
|
||||
|
||||
impl<'ctx> FunctionIterator<'ctx> {
|
||||
fn from_module(module: &inkwell::module::Module<'ctx>) -> Self {
|
||||
pub fn from_module(module: &inkwell::module::Module<'ctx>) -> Self {
|
||||
Self {
|
||||
next: module.get_first_function(),
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue