summaryrefslogtreecommitdiffstats
path: root/examples/analyzer-plugin
diff options
context:
space:
mode:
authorJordan Rose <jordan_rose@apple.com>2014-02-12 21:04:23 +0000
committerJordan Rose <jordan_rose@apple.com>2014-02-12 21:04:23 +0000
commitc766e50ffb699ee68de9b5b488deb8b862f30277 (patch)
tree14bff2e4a57c25e8e55e53b2243f76c9159b61ba /examples/analyzer-plugin
parent63405b9c46eb3d2666f6422c073bb0c61fbc8bfa (diff)
[examples] Use loadable modules instead of shared libraries for Clang plugins.
This avoids linking in extra copies of, say, LLVMSupport. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201256 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'examples/analyzer-plugin')
-rw-r--r--examples/analyzer-plugin/CMakeLists.txt14
1 files changed, 1 insertions, 13 deletions
diff --git a/examples/analyzer-plugin/CMakeLists.txt b/examples/analyzer-plugin/CMakeLists.txt
index 9984880b2e..a58f57c487 100644
--- a/examples/analyzer-plugin/CMakeLists.txt
+++ b/examples/analyzer-plugin/CMakeLists.txt
@@ -1,8 +1,4 @@
-set(LLVM_LINK_COMPONENTS
- Support
- )
-
-add_clang_library(SampleAnalyzerPlugin MODULE MainCallChecker.cpp)
+add_llvm_loadable_module(SampleAnalyzerPlugin MainCallChecker.cpp)
add_dependencies(SampleAnalyzerPlugin
ClangAttrClasses
@@ -11,15 +7,7 @@ add_dependencies(SampleAnalyzerPlugin
ClangDeclNodes
ClangDiagnosticCommon
ClangStmtNodes
- )
-
-target_link_libraries(SampleAnalyzerPlugin
clangAST
clangAnalysis
clangStaticAnalyzerCore
)
-
-set_target_properties(SampleAnalyzerPlugin
- PROPERTIES
- LINKER_LANGUAGE CXX
- PREFIX "")