[llvm] r207903 - InstIterator.h lives in llvm/IR.
Yaron Keren
yaron.keren at gmail.com
Sat May 3 04:30:49 PDT 2014
Author: yrnkrn
Date: Sat May 3 06:30:49 2014
New Revision: 207903
URL: http://llvm.org/viewvc/llvm-project?rev=207903&view=rev
Log:
InstIterator.h lives in llvm/IR.
Modified:
llvm/trunk/docs/ProgrammersManual.rst
Modified: llvm/trunk/docs/ProgrammersManual.rst
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/docs/ProgrammersManual.rst?rev=207903&r1=207902&r2=207903&view=diff
==============================================================================
--- llvm/trunk/docs/ProgrammersManual.rst (original)
+++ llvm/trunk/docs/ProgrammersManual.rst Sat May 3 06:30:49 2014
@@ -1559,14 +1559,14 @@ Iterating over the ``Instruction`` in a
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)
More information about the llvm-commits
mailing list