llvm-project
cf2b6616 - [orc-rt] Consolidate symbol export macros (#220495)

Commit
80 days ago
[orc-rt] Consolidate symbol export macros (#220495) Replace the overlapping visibility macros with a single pair, one per public API surface: ORC_RT_C_EXPORT (orc-rt-c/support/Compiler.h) - the C API ORC_RT_EXPORT (orc-rt/support/Compiler.h) - the C++ API ORC_RT_C_ABI is renamed to ORC_RT_C_EXPORT. ORC_RT_INTERFACE, ORC_RT_HIDDEN and ORC_RT_IMPORT are removed. ORC_RT_EXPORT is currently defined as ORC_RT_C_EXPORT so that the platform logic lives in one place. It becomes separately switchable once there is an option to hide the C++ API. No change to generated code: every macro expands to exactly what it did before. The Windows dllexport/dllimport and static-build cases are left as a TODO for the commit that adds the shared-library build.
Author
Parents
Loading