From 65acb301787c163665df7935d66198b359003959 Mon Sep 17 00:00:00 2001
From: Jonathan Manton
Date: Wed, 30 Jun 2004 18:10:30 +0000
Subject: [PATCH] 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
---
docs/WritingAnLLVMPass.html | 10 ++++++++++
1 file changed, 10 insertions(+)
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) {