[PATCH] D75382: [lld] Initial commit for new Mach-O backend

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 2 14:09:06 PST 2020


MaskRay added inline comments.


================
Comment at: lld/MachO/OutputSegment.cpp:16
+
+std::vector<OutputSegment *> macho::outputSegments;
+
----------------
alexshap wrote:
> @ruiu, @pcc - just curious, would you mind adding some comments regarding the design considerations which motivated this approach (using global variables to store various parts of the object file, storing the state globally etc) ? 
I started to be heavily involved in lld/ELF since mid 2018. I do not know much about the previous history.

You find the discussions in D70421 and https://reviews.llvm.org/D70766#1761624 helpful. If we can avoid global variables, that will be nice.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D75382





More information about the llvm-commits mailing list