Fixed the tutorial to indicate that we needed to use the llvm namespace.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@14507 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jonathan Manton 2004-06-30 18:10:30 +00:00
parent ce76db9083
commit 65acb30178

View File

@ -203,6 +203,14 @@ href="http://llvm.cs.uiuc.edu/doxygen/classllvm_1_1Pass.html">Pass</a></tt>, and
we are operating on <tt><a
href="http://llvm.cs.uiuc.edu/doxygen/classllvm_1_1Function.html">Function</a></tt>'s.</p>
<p>Next we have:</p>
<pre>
<b>using namespace llvm;</b>
</pre>
<p>... which is required because the functions from the include files
live in the llvm namespace.
</p>
<p>Next we have:</p>
<pre>
@ -259,6 +267,8 @@ depending on what it is to be used for. For "optimizations" we use the
<b>#include</b> "<a href="http://llvm.cs.uiuc.edu/doxygen/Pass_8h-source.html">llvm/Pass.h</a>"
<b>#include</b> "<a href="http://llvm.cs.uiuc.edu/doxygen/Function_8h-source.html">llvm/Function.h</a>"
<b>using namespace llvm;</b>
<b>namespace</b> {
<b>struct Hello</b> : <b>public</b> <a href="#FunctionPass">FunctionPass</a> {
<b>virtual bool</b> <a href="#runOnFunction">runOnFunction</a>(Function &amp;F) {