diff options
| author | Jonathan Manton <jmanton@uiuc.edu> | 2004-06-30 18:10:30 +0000 |
|---|---|---|
| committer | Jonathan Manton <jmanton@uiuc.edu> | 2004-06-30 18:10:30 +0000 |
| commit | aff4a6a11b0d6cdc5aba728f8a001665f1b81f05 (patch) | |
| tree | ce552371bacf53df81020b4d5775a6b7e05f8deb | |
| parent | 2b9106f8085b6c54a00dac77a0098e79d3f25709 (diff) | |
| download | bcm5719-llvm-aff4a6a11b0d6cdc5aba728f8a001665f1b81f05.tar.gz bcm5719-llvm-aff4a6a11b0d6cdc5aba728f8a001665f1b81f05.zip | |
Fixed the tutorial to indicate that we needed to use the llvm namespace.
llvm-svn: 14507
| -rw-r--r-- | llvm/docs/WritingAnLLVMPass.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/llvm/docs/WritingAnLLVMPass.html b/llvm/docs/WritingAnLLVMPass.html index 1bb90f79d53..1f53f050bae 100644 --- a/llvm/docs/WritingAnLLVMPass.html +++ b/llvm/docs/WritingAnLLVMPass.html @@ -204,6 +204,14 @@ 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> <b>namespace</b> { @@ -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 &F) { |

