In the 4.0 cycle, the NamedOnly flag in IRMover.cpp was changed from true to false. This wound up breaking my out-of-tree compiler frontend.
The attached patch threads through the NamedOnly flag from IRMover to Linker and adds a new flag enum value. Thus, the behavior of existing code remains the same, but linker clients can override the NamedOnly behavior as needed.
I'm looking into adding a test for the new flag but wanted to throw the current diff up for review first.
How about just add the parameter to the existing constructor, but with a default of false (here and elsewhere).