[PATCH] [MachO] Implement -order_file as a separate ordering pass.

kledzik at apple.com kledzik at apple.com
Tue Jan 27 16:21:57 PST 2015

Sure two passes is conceptually clean, but if it turns out that running sort() twice for mach-o makes linking slower for mach-o than it currently is, then that is not ideal.

The other way would be to have one layout pass that uses a base class for the comparator which the ELF layout pass uses as-is, but there is a (non virtual) way for mach-o to supply a more complex comparator (today's comparator).



More information about the llvm-commits mailing list