Skip to content

Revert "[llvm-jitlink] Explicit exports for builtin runtime functions in MinGW executables" #127297

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 0 additions & 27 deletions llvm/tools/llvm-jitlink/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,30 +37,3 @@ endif()
if(${CMAKE_SYSTEM_NAME} MATCHES "SunOS")
target_link_libraries(llvm-jitlink PRIVATE socket)
endif()

if(WIN32)
set(builtin_runtime_functions
llvm_orc_registerEHFrameSectionWrapper
llvm_orc_deregisterEHFrameSectionWrapper
llvm_orc_registerJITLoaderGDBWrapper
llvm_orc_registerJITLoaderGDBAllocAction
llvm_orc_registerJITLoaderPerfStart
llvm_orc_registerJITLoaderPerfEnd
llvm_orc_registerJITLoaderPerfImpl
llvm_orc_registerVTuneImpl
llvm_orc_unregisterVTuneImpl
llvm_orc_test_registerVTuneImpl
)

foreach(entry IN LISTS builtin_runtime_functions)
string(APPEND exports_multiline "${entry}\n")
endforeach()

set(file_stem ${CMAKE_CURRENT_BINARY_DIR}/${CMAKE_CFG_INTDIR}/llvm-jitlink)
file(WRITE ${file_stem}.symbols ${exports_multiline})
file(WRITE ${file_stem}.def "EXPORTS\n${exports_multiline}")

add_llvm_symbol_exports(llvm-jitlink ${file_stem}.symbols)
else()
export_executable_symbols(llvm-jitlink)
endif(WIN32)