ruiu added a comment. Then I wonder why you need to pass a profile data to the linker as a text file in the first place. Does the data embedded to an object file lack something, like inter-compilation-unit call frequency? https://reviews.llvm.org/D36351