aboutsummaryrefslogtreecommitdiffstats
path: root/include/llvm/Support/InstVisitor.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Support/InstVisitor.h')
-rw-r--r--include/llvm/Support/InstVisitor.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/Support/InstVisitor.h b/include/llvm/Support/InstVisitor.h
index de1bce9..9a34edb 100644
--- a/include/llvm/Support/InstVisitor.h
+++ b/include/llvm/Support/InstVisitor.h
@@ -52,6 +52,8 @@
#include "llvm/Instruction.h"
+namespace llvm {
+
class Module;
// We operate on opaque instruction classes, so forward declare all instruction
@@ -64,7 +66,6 @@ class Module;
class TerminatorInst; class BinaryOperator;
class AllocationInst;
-
#define DELEGATE(CLASS_TO_VISIT) \
return ((SubClass*)this)->visit##CLASS_TO_VISIT((CLASS_TO_VISIT&)I)
@@ -186,4 +187,6 @@ struct InstVisitor {
#undef DELEGATE
+} // End llvm namespace
+
#endif