diff --git a/docs/WritingAnLLVMPass.html b/docs/WritingAnLLVMPass.html index 1bb90f79d53..1f53f050bae 100644 --- a/docs/WritingAnLLVMPass.html +++ b/docs/WritingAnLLVMPass.html @@ -203,6 +203,14 @@ href="http://llvm.cs.uiuc.edu/doxygen/classllvm_1_1Pass.html">Pass, and we are operating on Function's.

+

Next we have:

+
+using namespace llvm;
+
+

... which is required because the functions from the include files +live in the llvm namespace. +

+

Next we have:

@@ -259,6 +267,8 @@ depending on what it is to be used for.  For "optimizations" we use the
 #include "llvm/Pass.h"
 #include "llvm/Function.h"
 
+using namespace llvm;
+
 namespace {
   struct Hello : public FunctionPass {
     virtual bool runOnFunction(Function &F) {