getExportName implementation is based on lld-link. In its current form, it's mostly about convenience, but it will be more useful for EXPORTAS support, for which export name is not possible to deduce from other printed properties.
This was crbug.com/1222724, which caused D104529 to be reverted. The new test fails when D104529 is reapplied locally.