[llvm] r185848 - Update docs to say that a FunctionPass should not inspect other functions than the one being processed.
Stephen Lin
stephenwlin at gmail.com
Mon Jul 8 11:34:39 PDT 2013
Author: stephenwlin
Date: Mon Jul 8 13:34:39 2013
New Revision: 185848
URL: http://llvm.org/viewvc/llvm-project?rev=185848&view=rev
Log:
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.
Modified:
llvm/trunk/docs/WritingAnLLVMPass.rst
Modified: llvm/trunk/docs/WritingAnLLVMPass.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/WritingAnLLVMPass.rst?rev=185848&r1=185847&r2=185848&view=diff
==============================================================================
--- llvm/trunk/docs/WritingAnLLVMPass.rst (original)
+++ llvm/trunk/docs/WritingAnLLVMPass.rst Mon Jul 8 13:34:39 2013
@@ -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
More information about the llvm-commits
mailing list