mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-31 12:41:49 +01:00
5af2f4d561
Currently we have computations of `p_filesz` and `p_memsz` mixed together with the use of a loop over fragments. After recent changes it is possible to avoid using a loop for the computation of `p_filesz`, since we know that fragments are sorted by their file offsets. The main benefit of this change is that splits the computation of `p_filesz` and `p_memsz` what is simpler and allows us to fix the computation of the `p_memsz` independently (D78005 shows the issue that we have currently). Differential revision: https://reviews.llvm.org/D78628