[PATCH] D53667: [llvm-objcopy] Handle -O <format> flag.

Jake Ehrlich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Oct 25 11:57:57 PDT 2018


jakehehrlich added a comment.

I spoke a bit offline with Jordan. I'm going to put a patch up by end of day that refactors things so that this can be done in the Writer. It's a bit hariy but I really don't want setArch or anything like it. The issue we were aware of before was that size was format dependent and we (me really) kluded around it. This actully points out that many other things are as well. The general shift that I've liked here is to slowy remove state from the internal representation and push those things toward constants in the writers. This change I have in mind will remove a lot of state from sections and additionally add that section headers be written on a section by section basis.


Repository:
  rL LLVM

https://reviews.llvm.org/D53667





More information about the llvm-commits mailing list