[llvm-commits] CVS: llvm/docs/WritingAnLLVMPass.html
Jonathan Manton
jmanton at cs.uiuc.edu
Wed Jun 30 13:14:01 PDT 2004
Changes in directory llvm/docs:
WritingAnLLVMPass.html updated: 1.29 -> 1.30
---
Log message:
Fixed the tutorial to indicate that we needed to use the llvm namespace.
---
Diffs of the changes: (+11 -1)
Index: llvm/docs/WritingAnLLVMPass.html
diff -u llvm/docs/WritingAnLLVMPass.html:1.29 llvm/docs/WritingAnLLVMPass.html:1.30
--- llvm/docs/WritingAnLLVMPass.html:1.29 Tue Jun 22 03:02:25 2004
+++ llvm/docs/WritingAnLLVMPass.html Wed Jun 30 13:10:30 2004
@@ -204,6 +204,14 @@
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>
<b>namespace</b> {
@@ -259,6 +267,8 @@
<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 &F) {
@@ -1471,7 +1481,7 @@
<a href="mailto:sabre at nondot.org">Chris Lattner</a><br>
<a href="http://llvm.cs.uiuc.edu">The LLVM Compiler Infrastructure</a><br>
- Last modified: $Date: 2004/06/22 08:02:25 $
+ Last modified: $Date: 2004/06/30 18:10:30 $
</address>
</body>
More information about the llvm-commits
mailing list