summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2014-05-03 11:30:49 +0000
committerYaron Keren <yaron.keren@gmail.com>2014-05-03 11:30:49 +0000
commitd9c0bedc293511848d1797bc3ad64069ae3dd49e (patch)
tree06c5f3d4e68eba9adb8f52d2ef9f842566ff69c3
parent7ff07727b540dfb17b5a41c95306c91e1e04ce2c (diff)
downloadbcm5719-llvm-d9c0bedc293511848d1797bc3ad64069ae3dd49e.tar.gz
bcm5719-llvm-d9c0bedc293511848d1797bc3ad64069ae3dd49e.zip
InstIterator.h lives in llvm/IR.
llvm-svn: 207903
-rw-r--r--llvm/docs/ProgrammersManual.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/docs/ProgrammersManual.rst b/llvm/docs/ProgrammersManual.rst
index 8e6629ed49b..55f37545484 100644
--- a/llvm/docs/ProgrammersManual.rst
+++ b/llvm/docs/ProgrammersManual.rst
@@ -1559,14 +1559,14 @@ Iterating over the ``Instruction`` in a ``Function``
If you're finding that you commonly iterate over a ``Function``'s
``BasicBlock``\ s and then that ``BasicBlock``'s ``Instruction``\ s,
``InstIterator`` should be used instead. You'll need to include
-``llvm/Support/InstIterator.h`` (`doxygen
+``llvm/IR/InstIterator.h`` (`doxygen
<http://llvm.org/doxygen/InstIterator_8h-source.html>`__) and then instantiate
``InstIterator``\ s explicitly in your code. Here's a small example that shows
how to dump all instructions in a function to the standard error stream:
.. code-block:: c++
- #include "llvm/Support/InstIterator.h"
+ #include "llvm/IR/InstIterator.h"
// F is a pointer to a Function instance
for (inst_iterator I = inst_begin(F), E = inst_end(F); I != E; ++I)
OpenPOWER on IntegriCloud