mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 14:54:47 +00:00
Split out an optional "llvm" feature
Also move OptLevel out of roc_gen (which should really be called gen_llvm) and into roc_mono, so it's no longer coupled to LLVM.
This commit is contained in:
parent
0e5619c422
commit
b05342c678
14 changed files with 143 additions and 76 deletions
|
@ -43,6 +43,12 @@ macro_rules! return_on_layout_error {
|
|||
};
|
||||
}
|
||||
|
||||
#[derive(Debug, Clone, Copy)]
|
||||
pub enum OptLevel {
|
||||
Normal,
|
||||
Optimize,
|
||||
}
|
||||
|
||||
#[derive(Clone, Debug, PartialEq)]
|
||||
pub enum MonoProblem {
|
||||
PatternProblem(crate::exhaustive::Error),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue