blob: e582b2c45a8615f7d81f41bd149c22f5aee7a02b [file] [log] [blame]
Nico Weber216436c2013-12-29 23:14:26 +00001# If we don't need RTTI or EH, there's no reason to export anything
Nico Webere8ef46c2013-12-29 23:15:01 +00002# from the plugin.
Kristof Umannd173caf2018-05-23 12:48:55 +00003if( NOT MSVC ) # MSVC mangles symbols differently, and
4 # PrintFunctionNames.export contains C++ symbols.
Nico Weberc4592192013-12-30 00:05:56 +00005 if( NOT LLVM_REQUIRES_RTTI )
6 if( NOT LLVM_REQUIRES_EH )
7 set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/PrintFunctionNames.exports)
8 endif()
Nico Weber216436c2013-12-29 23:14:26 +00009 endif()
10endif()
11
John Brawn4d79ec72016-08-05 11:01:08 +000012add_llvm_loadable_module(PrintFunctionNames PrintFunctionNames.cpp PLUGIN_TOOL clang)
NAKAMURA Takumi9b9de472014-07-13 13:40:23 +000013
14if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN))
Chris Bieneman28cdb672016-06-09 21:29:55 +000015 target_link_libraries(PrintFunctionNames PRIVATE
NAKAMURA Takumi9b9de472014-07-13 13:40:23 +000016 clangAST
17 clangBasic
18 clangFrontend
19 LLVMSupport
20 )
21endif()