https://github.com/arsenm commented: This would need to consider the visibility of the functions. If they are unconditionally private, you can't use this for object linking https://github.com/llvm/llvm-project/pull/114810