[PATCH] D69739: [llvm-objcopy][ELF] Add OriginalType & OriginalFlags
Fangrui Song via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 1 14:04:51 PDT 2019
MaskRay created this revision.
MaskRay added reviewers: jakehehrlich, jhenderson, rupprecht.
Herald added subscribers: llvm-commits, seiya, abrachet, arichardson, emaste.
Herald added a reviewer: espindola.
Herald added a reviewer: alexshap.
Herald added a project: LLVM.
`llvm::objcopy::elf::*Section::classof` matches Type and Flags, yet Type
and Flags are mutable (setSectionFlagsAndTypes and upcoming
--only-keep-debug feature). Add OriginalType & OriginalFlags to be used
in classof, to prevent classof results from changing.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D69739
Files:
llvm/tools/llvm-objcopy/ELF/Object.cpp
llvm/tools/llvm-objcopy/ELF/Object.h
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D69739.227531.patch
Type: text/x-patch
Size: 6087 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191101/235227a7/attachment.bin>
More information about the llvm-commits
mailing list