diff options
author | Yaron Keren <yaron.keren@gmail.com> | 2014-05-03 11:30:49 +0000 |
---|---|---|
committer | Yaron Keren <yaron.keren@gmail.com> | 2014-05-03 11:30:49 +0000 |
commit | 5608a25a73ae95e90c387dbfe6c8bce6ab20da18 (patch) | |
tree | b780cae55f64d41b471c849b87f9b7ddaf9585ec /docs | |
parent | 486ad6262e4d513d426c19448b55103b3fff0aad (diff) |
InstIterator.h lives in llvm/IR.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207903 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'docs')
-rw-r--r-- | docs/ProgrammersManual.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/docs/ProgrammersManual.rst b/docs/ProgrammersManual.rst index 8e6629ed49b..55f37545484 100644 --- a/docs/ProgrammersManual.rst +++ b/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) |