]> granicus.if.org Git - clang/commitdiff
cmake: Remove uses of add_llvm_loadable_module macro
authorTom Stellard <tstellar@redhat.com>
Thu, 20 Dec 2018 22:04:36 +0000 (22:04 +0000)
committerTom Stellard <tstellar@redhat.com>
Thu, 20 Dec 2018 22:04:36 +0000 (22:04 +0000)
This was removed from llvm in r349839.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@349840 91177308-0d34-0410-b5e6-96231b3b80d8

examples/AnnotateFunctions/CMakeLists.txt
examples/PrintFunctionNames/CMakeLists.txt
examples/analyzer-plugin/CMakeLists.txt

index 5684abf2380d14ccea063a5629737560fc36cd36..44b6317e72afcb5507cdb234b7f9484750ea6cd7 100644 (file)
@@ -1,4 +1,4 @@
-add_llvm_loadable_module(AnnotateFunctions AnnotateFunctions.cpp PLUGIN_TOOL clang)
+add_llvm_library(AnnotateFunctions MODULE AnnotateFunctions.cpp PLUGIN_TOOL clang)
 
 if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN))
   target_link_libraries(AnnotateFunctions PRIVATE
index e582b2c45a8615f7d81f41bd149c22f5aee7a02b..68c6f76dff0544677679888a5b446b1c7eb586d6 100644 (file)
@@ -9,7 +9,7 @@ if( NOT MSVC ) # MSVC mangles symbols differently, and
   endif()
 endif()
 
-add_llvm_loadable_module(PrintFunctionNames PrintFunctionNames.cpp PLUGIN_TOOL clang)
+add_llvm_library(PrintFunctionNames MODULE PrintFunctionNames.cpp PLUGIN_TOOL clang)
 
 if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN))
   target_link_libraries(PrintFunctionNames PRIVATE
index 0d5b2754cafec4c664175fae58cee1929d4b88f1..7c7b2aec1988ddb790956cf01f73e1209424bb36 100644 (file)
@@ -1,5 +1,5 @@
 set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/SampleAnalyzerPlugin.exports)
-add_llvm_loadable_module(SampleAnalyzerPlugin MainCallChecker.cpp PLUGIN_TOOL clang)
+add_llvm_library(SampleAnalyzerPlugin MODULE MainCallChecker.cpp PLUGIN_TOOL clang)
 
 if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN))
   target_link_libraries(SampleAnalyzerPlugin PRIVATE