[all-commits] [llvm/llvm-project] ade55d: [llvm-objcopy][ELF] Add OriginalType & OriginalFlags

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Nov 5 08:44:58 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: ade55d07871040d0e75b94e3d3a1eaecbd704d36
      https://github.com/llvm/llvm-project/commit/ade55d07871040d0e75b94e3d3a1eaecbd704d36
  Author: Fangrui Song <maskray at google.com>
  Date:   2019-11-05 (Tue, 05 Nov 2019)

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

  Log Message:
  -----------
  [llvm-objcopy][ELF] Add OriginalType & OriginalFlags

`llvm::objcopy::elf::*Section::classof` matches Type and Flags, yet Type
and Flags are mutable (by setSectionFlagsAndTypes and upcoming
--only-keep-debug feature). Add OriginalType & OriginalFlags to be used
in classof, to prevent classof results from changing.

Reviewed By: jakehehrlich, jhenderson, alexshap

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




More information about the All-commits mailing list