IR: de-duplicate two CmpInst routines (NFC) (#116866)
[llvm-project.git] / llvm / tools / bugpoint-passes / CMakeLists.txt
blob60fc1bde513710becd7ff1822d7783ec8afdd9ee
1 if( NOT LLVM_BUILD_TOOLS )
2   set(EXCLUDE_FROM_ALL ON)
3 endif()
5 # If we don't need RTTI or EH, there's no reason to export anything
6 # from this plugin.
7 if( NOT LLVM_REQUIRES_RTTI )
8   if( NOT LLVM_REQUIRES_EH )
9     set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/bugpoint.exports)
10   endif()
11 endif()
13 if(WIN32 OR CYGWIN OR ZOS)
14   set(LLVM_LINK_COMPONENTS Core Support)
15 endif()
17 add_llvm_library( BugpointPasses MODULE BUILDTREE_ONLY
18   TestPasses.cpp
20   DEPENDS
21   intrinsics_gen
22   bugpoint
23   )