[PATCH] D105445: [InstrProfiling] Use llvm.compiler.used if applicable for Mach-O

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 30 10:27:46 PDT 2021


MaskRay added a comment.

I don't have access to an x86_64 macOS.

If I remove `REQUIRES: lto` from `test/profile/instrprof-darwin-dead-strip.c`, it fails on aarch64 macOS before this patch.

But this patch doesn't change the section contents:

  Contents of (__DATA,__llvm_prf_names) section
  0000000100018030 6f660008 616d016f 69 6e
  
  Contents of (__DATA,__llvm_prf_cnts) section
  0000000100014000        00000000 00000000


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D105445



More information about the llvm-commits mailing list