blob: b79e575eaa6a0c4dbc1260bdcbc012708dc3d372 [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.
NAKAMURA Takumi6672b8e2014-07-13 13:38:55 +00003if( NOT MSVC ) # MSVC mangles symbols differently, and
Nico Weberc4592192013-12-30 00:05:56 +00004 # PrintFunctionNames.export contains C++ symbols.
5 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
Jordan Rose68db1072014-02-12 21:04:23 +000012add_llvm_loadable_module(PrintFunctionNames PrintFunctionNames.cpp)