mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-26 23:56:06 +00:00

`__xray_customevent` and `__xray_typedevent` are built-in functions in Clang. With -fxray-instrument, they are lowered to `__xray_CustomEvent` (with 2 arguments) or `__xray_TypedEvent` (with 3 arguments). xray patching is supported for shared objects, but they may contain `__xray_customevent` and `__xray_typedevent` references that need to be satisfied by default visibility definitions exported by the executable. lld since df54f627fad789ccb11c72a9fddf116decbeba0e, like GNU ld, catches the scenario at link time.