[PATCH] D144945: [Doc][NFC] Add template type when use MachinePassRegistry.
WangLian via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Feb 28 18:37:45 PST 2023
This revision was automatically updated to reflect the committed changes.
Closed by commit rGbc504e0f0605: [Doc][NFC] Add template type when use MachinePassRegistry. (authored by Jimerlife).
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D144945/new/
https://reviews.llvm.org/D144945
Files:
llvm/docs/WritingAnLLVMPass.rst
Index: llvm/docs/WritingAnLLVMPass.rst
===================================================================
--- llvm/docs/WritingAnLLVMPass.rst
+++ llvm/docs/WritingAnLLVMPass.rst
@@ -1263,7 +1263,7 @@
.. code-block:: c++
- MachinePassRegistry RegisterMyPasses::Registry;
+ MachinePassRegistry<RegisterMyPasses::FunctionPassCtor> RegisterMyPasses::Registry;
And finally, declare the command line option for your passes. Example:
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D144945.501354.patch
Type: text/x-patch
Size: 441 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230301/da295d78/attachment.bin>
More information about the llvm-commits
mailing list