[clang] [memprof] Export __memprof_default_options_str on Darwin (PR #128920)
Ellis Hoag via cfe-commits
cfe-commits at lists.llvm.org
Wed Feb 26 11:49:20 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:
Yes, Darwin symbols are prefixed with `_`, so this is correct.
https://github.com/llvm/llvm-project/pull/128920
More information about the cfe-commits
mailing list