Skip to content

Commit 8752065

Browse files
committed
Revert "[Docs] Clarify that FunctionPasses can't add/remove declarations"
This reverts commit 710676c.
1 parent a8f9f08 commit 8752065

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/docs/WritingAnLLVMPass.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -474,8 +474,7 @@ external functions.
474474
To be explicit, ``FunctionPass`` subclasses are not allowed to:
475475

476476
#. Inspect or modify a ``Function`` other than the one currently being processed.
477-
#. Add or remove ``Function``\ s from the current ``Module``, including
478-
declarations.
477+
#. Add or remove ``Function``\ s from the current ``Module``.
479478
#. Add or remove global variables from the current ``Module``.
480479
#. Maintain state across invocations of :ref:`runOnFunction
481480
<writing-an-llvm-pass-runOnFunction>` (including global data).

0 commit comments

Comments
 (0)