mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-11-25 20:23:11 +01:00
Update docs to say that a FunctionPass should not inspect other functions than the one being processed.
Please let me know if you disagree with this assessment (no one has yet, after asking on llvm-commits and LLVMDev) and I will revert. llvm-svn: 185848
This commit is contained in:
parent
1da12e6b2b
commit
5b387a98f3
@ -454,7 +454,7 @@ external functions.
|
||||
|
||||
To be explicit, ``FunctionPass`` subclasses are not allowed to:
|
||||
|
||||
#. Modify a ``Function`` other than the one currently being processed.
|
||||
#. Inspect or modify a ``Function`` other than the one currently being processed.
|
||||
#. Add or remove ``Function``\ s from the current ``Module``.
|
||||
#. Add or remove global variables from the current ``Module``.
|
||||
#. Maintain state across invocations of:ref:`runOnFunction
|
||||
|
Loading…
Reference in New Issue
Block a user