[all-commits] [llvm/llvm-project] 2bb4eb: [llvm-objcopy][ELF][NFC] Remove unneeded methods o...

Igor Kudrin via All-commits all-commits at lists.llvm.org
Mon Aug 9 01:45:03 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2bb4ebb19e8893634fd2491d55c127b8ba58e637
      https://github.com/llvm/llvm-project/commit/2bb4ebb19e8893634fd2491d55c127b8ba58e637
  Author: Igor Kudrin <ikudrin at accesssoftek.com>
  Date:   2021-08-09 (Mon, 09 Aug 2021)

  Changed paths:
    M llvm/tools/llvm-objcopy/ELF/Object.h

  Log Message:
  -----------
  [llvm-objcopy][ELF][NFC] Remove unneeded methods of Object

The patch removes mutable accessor methods for sections and segments.
As for now, const variants of them are not used because all callers have
mutable access to an instance of Object. On the other hand, they do not
actually modify the sets, so it looks better to keep only const ones.

Differential Revision: https://reviews.llvm.org/D107652




More information about the All-commits mailing list