summaryrefslogtreecommitdiffstats
path: root/llvm/docs/WritingAnLLVMPass.rst
diff options
context:
space:
mode:
authorStephen Lin <stephenwlin@gmail.com>2013-07-08 18:34:39 +0000
committerStephen Lin <stephenwlin@gmail.com>2013-07-08 18:34:39 +0000
commit095fee30e89f4070ad59de7b87679e50ee958572 (patch)
tree5715339bfa93cf8873f0108261464dfcbec70dcb /llvm/docs/WritingAnLLVMPass.rst
parent7504ed42557e7b93c1f9282a2471f206ecfef4c1 (diff)
downloadbcm5719-llvm-095fee30e89f4070ad59de7b87679e50ee958572.tar.gz
bcm5719-llvm-095fee30e89f4070ad59de7b87679e50ee958572.zip
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
Diffstat (limited to 'llvm/docs/WritingAnLLVMPass.rst')
-rw-r--r--llvm/docs/WritingAnLLVMPass.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/docs/WritingAnLLVMPass.rst b/llvm/docs/WritingAnLLVMPass.rst
index b10d98f87e2..e7a87a12d25 100644
--- a/llvm/docs/WritingAnLLVMPass.rst
+++ b/llvm/docs/WritingAnLLVMPass.rst
@@ -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
OpenPOWER on IntegriCloud