Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / examples / PrintFunctionNames / CMakeLists.txt
blob28da363729f3a6a752a331a9d88f91aee91131a6
1 # If we don't need RTTI or EH, there's no reason to export anything
2 # from the plugin.
3 if( NOT MSVC ) # MSVC mangles symbols differently, and
4                # 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()
9   endif()
10 endif()
12 add_llvm_library(PrintFunctionNames MODULE PrintFunctionNames.cpp PLUGIN_TOOL clang)
14 if(WIN32 OR CYGWIN)
15   set(LLVM_LINK_COMPONENTS
16     Support
17   )
18   clang_target_link_libraries(PrintFunctionNames PRIVATE
19     clangAST
20     clangBasic
21     clangFrontend
22     )
23 endif()