[all-commits] [llvm/llvm-project] 861429: [llvm-objcopy][MachO] Fix the calculation of the o...

Alexander Shaposhnikov via All-commits all-commits at lists.llvm.org
Thu Oct 22 13:58:39 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 861429160ca74b1530ffa961b60b2b4fdb75eec2
      https://github.com/llvm/llvm-project/commit/861429160ca74b1530ffa961b60b2b4fdb75eec2
  Author: Alexander Shaposhnikov <alexshap at fb.com>
  Date:   2020-10-22 (Thu, 22 Oct 2020)

  Changed paths:
    A llvm/test/tools/llvm-objcopy/MachO/virtual-section.test
    M llvm/tools/llvm-objcopy/MachO/MachOWriter.cpp

  Log Message:
  -----------
  [llvm-objcopy][MachO] Fix the calculation of the output size

Virtual sections do not contribute to the final output size.
This diff fixes the corresponding calculations in the method MachOWriter::totalSize.

Test plan: make check-all

Differential revision: https://reviews.llvm.org/D89661




More information about the All-commits mailing list