[clang] Support MemProf on darwin (PR #69640)

Teresa Johnson via cfe-commits cfe-commits at lists.llvm.org
Thu Oct 26 20:17:49 PDT 2023


================
@@ -279,13 +286,54 @@ struct Allocator {
     Print(Value->mib, Key, bool(Arg));
   }
 
+  using SegmentEntry = ::llvm::memprof::SegmentEntry;
   void FinishAndWrite() {
     if (print_text && common_flags()->print_module_map)
       DumpProcessMap();
 
     allocator.ForceLock();
 
     InsertLiveBlocks();
+#if SANITIZER_APPLE
----------------
teresajohnson wrote:

Which part of this handling is Apple-specific?

https://github.com/llvm/llvm-project/pull/69640


More information about the cfe-commits mailing list