diff options
author | Tom Stellard <tstellar@redhat.com> | 2018-12-20 22:04:08 +0000 |
---|---|---|
committer | Tom Stellard <tstellar@redhat.com> | 2018-12-20 22:04:08 +0000 |
commit | 2f44fbe936fab72921c3daa41fc8bf8f491c55be (patch) | |
tree | d474ab2578e520d6532ae40ab6107378decae5fa /llvm/docs | |
parent | b1f500f29483c5453390291c68765b068770c0e4 (diff) | |
download | bcm5719-llvm-2f44fbe936fab72921c3daa41fc8bf8f491c55be.tar.gz bcm5719-llvm-2f44fbe936fab72921c3daa41fc8bf8f491c55be.zip |
cmake: Remove add_llvm_loadable_module()
Summary:
This function is very similar to add_llvm_library(), so this patch merges it
into add_llvm_library() and replaces all calls to add_llvm_loadable_module(lib ...)
with add_llvm_library(lib MODULE ...)
Reviewers: philip.pfaffe, beanz, chandlerc
Reviewed By: philip.pfaffe
Subscribers: chapuni, mgorny, llvm-commits
Differential Revision: https://reviews.llvm.org/D51748
llvm-svn: 349839
Diffstat (limited to 'llvm/docs')
-rw-r--r-- | llvm/docs/CMake.rst | 4 | ||||
-rw-r--r-- | llvm/docs/WritingAnLLVMPass.rst | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/llvm/docs/CMake.rst b/llvm/docs/CMake.rst index f4f67db4d7e..d27c0a8222c 100644 --- a/llvm/docs/CMake.rst +++ b/llvm/docs/CMake.rst @@ -774,7 +774,7 @@ Contents of ``<project dir>/<pass name>/CMakeLists.txt``: Note if you intend for this pass to be merged into the LLVM source tree at some point in the future it might make more sense to use LLVM's internal -``add_llvm_loadable_module`` function instead by... +``add_llvm_library`` function with he MODULE argument instead by... Adding the following to ``<project dir>/CMakeLists.txt`` (after @@ -789,7 +789,7 @@ And then changing ``<project dir>/<pass name>/CMakeLists.txt`` to .. code-block:: cmake - add_llvm_loadable_module(LLVMPassname + add_llvm_library(LLVMPassname MODULE Pass.cpp ) diff --git a/llvm/docs/WritingAnLLVMPass.rst b/llvm/docs/WritingAnLLVMPass.rst index 41f400740e8..19dc6c11c9b 100644 --- a/llvm/docs/WritingAnLLVMPass.rst +++ b/llvm/docs/WritingAnLLVMPass.rst @@ -55,7 +55,7 @@ copy the following into ``CMakeLists.txt``: .. code-block:: cmake - add_llvm_loadable_module( LLVMHello + add_llvm_library( LLVMHello MODULE Hello.cpp PLUGIN_TOOL |