[llvm] bc504e0 - [Doc][NFC] Add template type when use MachinePassRegistry.
Lian Wang via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 28 18:37:34 PST 2023
Author: Lian Wang
Date: 2023-03-01T02:37:21Z
New Revision: bc504e0f06055ef30da3e7983cbd5a0895bfa534
URL: https://github.com/llvm/llvm-project/commit/bc504e0f06055ef30da3e7983cbd5a0895bfa534
DIFF: https://github.com/llvm/llvm-project/commit/bc504e0f06055ef30da3e7983cbd5a0895bfa534.diff
LOG: [Doc][NFC] Add template type when use MachinePassRegistry.
Reviewed By: serge-sans-paille
Differential Revision: https://reviews.llvm.org/D144945
Added:
Modified:
llvm/docs/WritingAnLLVMPass.rst
Removed:
################################################################################
diff --git a/llvm/docs/WritingAnLLVMPass.rst b/llvm/docs/WritingAnLLVMPass.rst
index 4f5ee9657ff78..771185614a49f 100644
--- a/llvm/docs/WritingAnLLVMPass.rst
+++ b/llvm/docs/WritingAnLLVMPass.rst
@@ -1263,7 +1263,7 @@ Then you need to declare the registry. Example: if your pass registry is
.. code-block:: c++
- MachinePassRegistry RegisterMyPasses::Registry;
+ MachinePassRegistry<RegisterMyPasses::FunctionPassCtor> RegisterMyPasses::Registry;
And finally, declare the command line option for your passes. Example:
More information about the llvm-commits
mailing list