mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-22 08:17:40 +03:00
Add a comment to stack_size function
This commit is contained in:
parent
f957d694c8
commit
17fd5e5b15
@ -58,6 +58,10 @@ impl<'a> Layout<'a> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// TODO this will probably need to move to crane:: because
|
||||||
|
/// LLVM gets the answer using different APIs! Also, might be
|
||||||
|
/// nice to rename it to bytes_size, both to include the units
|
||||||
|
/// and also because this is the size on the stack *and* the heap!
|
||||||
pub fn stack_size(&self, cfg: TargetFrontendConfig) -> u32 {
|
pub fn stack_size(&self, cfg: TargetFrontendConfig) -> u32 {
|
||||||
use Layout::*;
|
use Layout::*;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user