[clang] [memprof] Export __memprof_default_options_str on Darwin (PR #128920)

Ellis Hoag via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 27 13:07:11 PST 2025


================
@@ -1617,6 +1617,10 @@ void DarwinClang::AddLinkRuntimeLibArgs(const ArgList &Args,
     }
   }
 
+  if (Sanitize.needsMemProfRt())
+    if (hasExportSymbolDirective(Args))
+      addExportedSymbol(CmdArgs, "___memprof_default_options_str");
----------------
ellishg wrote:

@teresajohnson is this ok? I feel like it may be more trouble than it's worth to refactor out this string

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


More information about the cfe-commits mailing list