summaryrefslogtreecommitdiffstats
path: root/clang/examples
diff options
context:
space:
mode:
authorDylan Noblesmith <nobled@dreamwidth.org>2012-02-13 12:32:15 +0000
committerDylan Noblesmith <nobled@dreamwidth.org>2012-02-13 12:32:15 +0000
commit01b2c9e82fa70dd94076daedbdb090a430581637 (patch)
tree0d55573589e7c6d83910f426ca94740c4dc5b86b /clang/examples
parent04eadc476ed98d91c3407ce1fba06dfc9a9a0a1d (diff)
downloadbcm5719-llvm-01b2c9e82fa70dd94076daedbdb090a430581637.tar.gz
bcm5719-llvm-01b2c9e82fa70dd94076daedbdb090a430581637.zip
examples/analyzer-plugin: hook up to build
This was never being compiled at all and was bitrotting as a result. Also compile SampleAnalyzerPlugin as a module, not a library, and fix a mistake with not passing the source files to add_clang_library(). llvm-svn: 150378
Diffstat (limited to 'clang/examples')
-rw-r--r--clang/examples/CMakeLists.txt1
-rw-r--r--clang/examples/Makefile2
-rw-r--r--clang/examples/analyzer-plugin/CMakeLists.txt2
-rw-r--r--clang/examples/analyzer-plugin/Makefile2
4 files changed, 4 insertions, 3 deletions
diff --git a/clang/examples/CMakeLists.txt b/clang/examples/CMakeLists.txt
index 7f4253af2eb..19d886935d4 100644
--- a/clang/examples/CMakeLists.txt
+++ b/clang/examples/CMakeLists.txt
@@ -2,5 +2,6 @@ if(NOT CLANG_BUILD_EXAMPLES)
set(EXCLUDE_FROM_ALL ON)
endif()
+add_subdirectory(analyzer-plugin)
add_subdirectory(clang-interpreter)
add_subdirectory(PrintFunctionNames)
diff --git a/clang/examples/Makefile b/clang/examples/Makefile
index 8cb431d7391..d8d902874ae 100644
--- a/clang/examples/Makefile
+++ b/clang/examples/Makefile
@@ -9,6 +9,6 @@
CLANG_LEVEL := ..
-PARALLEL_DIRS := clang-interpreter PrintFunctionNames
+PARALLEL_DIRS := analyzer-plugin clang-interpreter PrintFunctionNames
include $(CLANG_LEVEL)/Makefile
diff --git a/clang/examples/analyzer-plugin/CMakeLists.txt b/clang/examples/analyzer-plugin/CMakeLists.txt
index 865422684ca..2b9d82587ff 100644
--- a/clang/examples/analyzer-plugin/CMakeLists.txt
+++ b/clang/examples/analyzer-plugin/CMakeLists.txt
@@ -6,7 +6,7 @@ set( LLVM_USED_LIBS
set( LLVM_LINK_COMPONENTS support mc)
-add_clang_library(SampleAnalyzerPlugin SampleAnalyzerPlugin)
+add_clang_library(SampleAnalyzerPlugin MainCallChecker.cpp)
set_target_properties(SampleAnalyzerPlugin
PROPERTIES
diff --git a/clang/examples/analyzer-plugin/Makefile b/clang/examples/analyzer-plugin/Makefile
index 5537ee03d88..8b83bef9245 100644
--- a/clang/examples/analyzer-plugin/Makefile
+++ b/clang/examples/analyzer-plugin/Makefile
@@ -11,7 +11,7 @@ CLANG_LEVEL := ../..
LIBRARYNAME = SampleAnalyzerPlugin
LINK_LIBS_IN_SHARED = 0
-SHARED_LIBRARY = 1
+LOADABLE_MODULE = 1
include $(CLANG_LEVEL)/Makefile
OpenPOWER on IntegriCloud