Files
clang-p2996/llvm/lib/Transforms/Instrumentation
Ellis Hoag d2c4d1ec48 [memprof] Export __memprof_default_options_str on Darwin (#128920)
The `-memprof-runtime-default-options` LLVM flag introduced in
https://github.com/llvm/llvm-project/pull/118874 creates the
`__memprof_default_options_str` symbol with `WeakAnyLinkage` on Darwin.


fa0202169a/llvm/lib/Transforms/Instrumentation/MemProfiler.cpp (L573-L576)

This ensures Darwin passes `-exported_symbol
___memprof_default_options_str` to the linker so that the runtime
library has visibility into this symbol.

This will replace the earlier PR
https://github.com/llvm/llvm-project/pull/128615
2025-03-03 09:57:35 -08:00
..