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

Rui Ueyama ruiu at google.com
Tue Jan 27 15:07:22 PST 2015

My understanding is that in all architectures we basically want to sort atoms in the same order as they are ordered in the command line (file order and then in-file order). I looked at the history of the LayoutPass and found that the pass actually did that before. I think we want to restore that behavior, and apply that pass for all archs.

Each arch then optionally run a pass to (stable-) sort atoms after the LayoutPass to tweak the sort result.

I think this separation should work for all architectures and I think this separation is clean and nice.



More information about the llvm-commits mailing list