about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/back/write.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2023-06-21 16:38:47 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2023-06-22 09:33:06 +1000
commitabde9ba527704449ae84848673b52a8ab0f5cbd1 (patch)
treeef6dfc650330ed12c8606df58ca7071bca6df5ac /compiler/rustc_codegen_llvm/src/back/write.rs
parent105ac1c26d5ea9de84f6b4af583e85eb8991e749 (diff)
downloadrust-abde9ba527704449ae84848673b52a8ab0f5cbd1.tar.gz
rust-abde9ba527704449ae84848673b52a8ab0f5cbd1.zip
Tweak CGU size estimate code.
- Rename `create_size_estimate` as `compute_size_estimate`, because that
  makes more sense for the second and subsequent calls for each CGU.
- Change `CodegenUnit::size_estimate` from `Option<usize>` to `usize`.
  We can still assert that `compute_size_estimate` is called first.
- Move the size estimation for `place_mono_items` inside the function,
  for consistency with `merge_codegen_units`.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/back/write.rs')
0 files changed, 0 insertions, 0 deletions