[PATCH] D98325: [InstrProfiling] Don't generate __llvm_profile_runtime_user

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Mar 12 17:13:58 PST 2021


phosek added a comment.

@vsk I managed to reproduce this on Mac and it seems like `__llvm_profile_runtime_user` is needed in Mach-O. With this change, I see an undefined reference to `___llvm_profile_runtime` in the object file, but that doesn't cause the profile runtime to be linked and that symbol is stripped from the binary. I'm not familiar with Mach-O linking semantics so I don't know if this is working as intended or not.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D98325/new/

https://reviews.llvm.org/D98325



More information about the llvm-commits mailing list