2013-12-30 07:14:26 +08:00
|
|
|
# If we don't need RTTI or EH, there's no reason to export anything
|
2013-12-30 07:15:01 +08:00
|
|
|
# from the plugin.
|
2014-07-13 21:38:55 +08:00
|
|
|
if( NOT MSVC ) # MSVC mangles symbols differently, and
|
2013-12-30 08:05:56 +08:00
|
|
|
# PrintFunctionNames.export contains C++ symbols.
|
|
|
|
if( NOT LLVM_REQUIRES_RTTI )
|
|
|
|
if( NOT LLVM_REQUIRES_EH )
|
|
|
|
set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/PrintFunctionNames.exports)
|
|
|
|
endif()
|
2013-12-30 07:14:26 +08:00
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2014-02-13 05:04:23 +08:00
|
|
|
add_llvm_loadable_module(PrintFunctionNames PrintFunctionNames.cpp)
|
2014-07-13 21:40:23 +08:00
|
|
|
|
|
|
|
if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN))
|
|
|
|
target_link_libraries(PrintFunctionNames ${cmake_2_8_12_PRIVATE}
|
|
|
|
clangAST
|
|
|
|
clangBasic
|
|
|
|
clangFrontend
|
|
|
|
LLVMSupport
|
|
|
|
)
|
|
|
|
endif()
|