summaryrefslogtreecommitdiffstats
path: root/llvm/docs
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/docs')
-rw-r--r--llvm/docs/CMake.rst4
-rw-r--r--llvm/docs/WritingAnLLVMPass.rst2
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
OpenPOWER on IntegriCloud