Add a comment to stack_size function

This commit is contained in:
Richard Feldman 2020-02-29 20:05:57 -05:00
parent f957d694c8
commit 17fd5e5b15

View File

@ -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::*;