diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-06-21 16:38:47 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2023-06-22 09:33:06 +1000 |
| commit | abde9ba527704449ae84848673b52a8ab0f5cbd1 (patch) | |
| tree | ef6dfc650330ed12c8606df58ca7071bca6df5ac /compiler/rustc_codegen_llvm/src/llvm_util.rs | |
| parent | 105ac1c26d5ea9de84f6b4af583e85eb8991e749 (diff) | |
| download | rust-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/llvm_util.rs')
0 files changed, 0 insertions, 0 deletions
