summaryrefslogtreecommitdiff
path: root/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
commit905dea95bf909c294728c9b407ea0e9f854cdbe4 (patch)
tree4ab840ae97bc1ff262541023674a42be5564652d /docs/WritingAnLLVMPass.rst
parentd03d2b243a1c3b32a19ed4f387ac9d66febf8c2c (diff)
downloadllvm-905dea95bf909c294728c9b407ea0e9f854cdbe4.tar.gz
llvm-905dea95bf909c294728c9b407ea0e9f854cdbe4.tar.bz2
llvm-905dea95bf909c294728c9b407ea0e9f854cdbe4.tar.xz
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. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@185848 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs/WritingAnLLVMPass.rst')
-rw-r--r--docs/WritingAnLLVMPass.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/WritingAnLLVMPass.rst b/docs/WritingAnLLVMPass.rst
index b10d98f87e..e7a87a12d2 100644
--- a/docs/WritingAnLLVMPass.rst
+++ b/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