diff --git a/clang/examples/LLVMPrintFunctionNames/CMakeLists.txt b/clang/examples/LLVMPrintFunctionNames/CMakeLists.txt index 61e7a7842e2f..fbab0f8773bc 100644 --- a/clang/examples/LLVMPrintFunctionNames/CMakeLists.txt +++ b/clang/examples/LLVMPrintFunctionNames/CMakeLists.txt @@ -1,13 +1,5 @@ -# If we don't need RTTI or EH, there's no reason to export anything -# from the plugin. -if(NOT MSVC) # MSVC mangles symbols differently, and - # PrintLLVMFunctionNames.export contains C++ symbols. - if(NOT LLVM_REQUIRES_RTTI) - if(NOT LLVM_REQUIRES_EH) - set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/LLVMPrintFunctionNames.exports) - endif() - endif() -endif() +# There's no reason to export anything from the plugin. +set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/LLVMPrintFunctionNames.exports) add_llvm_library(LLVMPrintFunctionNames MODULE LLVMPrintFunctionNames.cpp PLUGIN_TOOL clang) diff --git a/clang/examples/PrintFunctionNames/CMakeLists.txt b/clang/examples/PrintFunctionNames/CMakeLists.txt index 28da363729f3..3668a3cdccf8 100644 --- a/clang/examples/PrintFunctionNames/CMakeLists.txt +++ b/clang/examples/PrintFunctionNames/CMakeLists.txt @@ -1,13 +1,5 @@ -# If we don't need RTTI or EH, there's no reason to export anything -# from the plugin. -if( NOT MSVC ) # MSVC mangles symbols differently, and - # 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() - endif() -endif() +# There's no reason to export anything from the plugin. +set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/PrintFunctionNames.exports) add_llvm_library(PrintFunctionNames MODULE PrintFunctionNames.cpp PLUGIN_TOOL clang) diff --git a/llvm/tools/bugpoint-passes/CMakeLists.txt b/llvm/tools/bugpoint-passes/CMakeLists.txt index 60fc1bde5137..53587a51c508 100644 --- a/llvm/tools/bugpoint-passes/CMakeLists.txt +++ b/llvm/tools/bugpoint-passes/CMakeLists.txt @@ -2,13 +2,8 @@ if( NOT LLVM_BUILD_TOOLS ) set(EXCLUDE_FROM_ALL ON) endif() -# If we don't need RTTI or EH, there's no reason to export anything -# from this plugin. -if( NOT LLVM_REQUIRES_RTTI ) - if( NOT LLVM_REQUIRES_EH ) - set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/bugpoint.exports) - endif() -endif() +# There's no reason to export anything from the plugin. +set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/bugpoint.exports) if(WIN32 OR CYGWIN OR ZOS) set(LLVM_LINK_COMPONENTS Core Support) diff --git a/offload/unittests/Conformance/lib/CMakeLists.txt b/offload/unittests/Conformance/lib/CMakeLists.txt index 8e86f101729a..1a917bdd13a4 100644 --- a/offload/unittests/Conformance/lib/CMakeLists.txt +++ b/offload/unittests/Conformance/lib/CMakeLists.txt @@ -3,7 +3,7 @@ add_library(MathTest STATIC target_include_directories(MathTest PUBLIC "${CMAKE_CURRENT_SOURCE_DIR}/../include") -if(NOT LLVM_REQUIRES_RTTI) +if(NOT LLVM_ENABLE_RTTI) target_compile_options(MathTest PUBLIC -fno-rtti) endif()