MergeFunctions: Impose a total order on the replacement of functions
We don't want to replace function A by Function B in one module and Function B
by Function A in another module.
If these functions are marked with linkonce_odr we would end up with a function
stub calling B in one module and a function stub calling A in another module. If
the linker decides to pick these two we will have two stubs calling each other.
rdar://
21265586
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239367
91177308-0d34-0410-b5e6-
96231b3b80d8