Update docs to say that a FunctionPass should not inspect other functions than the...
authorStephen Lin <stephenwlin@gmail.com>
Mon, 8 Jul 2013 18:34:39 +0000 (18:34 +0000)
committerStephen Lin <stephenwlin@gmail.com>
Mon, 8 Jul 2013 18:34:39 +0000 (18:34 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185848 91177308-0d34-0410-b5e6-96231b3b80d8

docs/WritingAnLLVMPass.rst

index b10d98f87e2ba1599d91445d0b4187f838e2637a..e7a87a12d25101f629ea87abb71382ca121901bf 100644 (file)
@@ -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