[PATCH] D69739: [llvm-objcopy][ELF] Add OriginalType & OriginalFlags

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 4 01:27:08 PST 2019


jhenderson added a comment.

This seems like a good idea to me. It makes our classof results immutable after all, leading to a more robust program.

One thought I had: did you consider adding just a new "Kind" enum instead, with the various kinds of sections recorded? That would add one field to the section class rather than two. I don't know if the Original* flags really have any other usage, and it would allow us to add further types later on which are not identified by flag/type whilst simplifying the classof functions to a basic comparison.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D69739/new/

https://reviews.llvm.org/D69739





More information about the llvm-commits mailing list