Explicitly export symbols from the sample analyzer plugin

This is done so that it will work when built using MSVC if
LLVM_EXPORT_SYMBOLS_FOR_PLUGINS=ON.

Differential Revision: http://reviews.llvm.org/D21971

llvm-svn: 274871
This commit is contained in:
John Brawn 2016-07-08 16:20:57 +00:00
parent d6ce086f32
commit a4403c9708
2 changed files with 4 additions and 1 deletions

View File

@ -1,4 +1,5 @@
add_llvm_loadable_module(SampleAnalyzerPlugin MainCallChecker.cpp)
set(LLVM_EXPORTED_SYMBOL_FILE ${CMAKE_CURRENT_SOURCE_DIR}/SampleAnalyzerPlugin.exports)
add_llvm_loadable_module(SampleAnalyzerPlugin MainCallChecker.cpp PLUGIN_TOOL clang)
if(LLVM_ENABLE_PLUGINS AND (WIN32 OR CYGWIN))
target_link_libraries(SampleAnalyzerPlugin PRIVATE

View File

@ -0,0 +1,2 @@
clang_registerCheckers
clang_analyzerAPIVersionString