Fix typos. Regularize include guard.
[oota-llvm.git] / include / llvm / Assembly / CachedWriter.h
index 20b4c05ffbf2726ee910e5423dbb4939ec67604c..a2167363599cce3c8f41131ad126255be484a26c 100644 (file)
@@ -1,20 +1,31 @@
-//===-- llvm/Assembly/CachedWriter.h - Printer Accellerator ------*- C++ -*--=//
+//===-- llvm/Assembly/CachedWriter.h - Printer Accellerator -----*- C++ -*-===//
+// 
+//                     The LLVM Compiler Infrastructure
 //
-// This file defines a 'CacheWriter' class that is used to accelerate printing
+// This file was developed by the LLVM research group and is distributed under
+// the University of Illinois Open Source License. See LICENSE.TXT for details.
+// 
+//===----------------------------------------------------------------------===//
+//
+// This file defines a 'CachedWriter' class that is used to accelerate printing
 // chunks of LLVM.  This is used when a module is not being changed, but random
 // parts of it need to be printed.  This can greatly speed up printing of LLVM
 // output.
 //
 //===----------------------------------------------------------------------===//
 
-#ifndef LLVM_ASSEMBLY_CACHED_WRITER_H
-#define LLVM_ASSEMBLY_CACHED_WRITER_H
+#ifndef LLVM_ASSEMBLY_CACHEDWRITER_H
+#define LLVM_ASSEMBLY_CACHEDWRITER_H
 
-#include "llvm/Assembly/Writer.h"
+#include "llvm/Value.h"
 #include <iostream>
 
-class AssemblyWriter;  // Internal private class
+namespace llvm {
+
+class Module;
+class PointerType;
 class SlotCalculator;
+class AssemblyWriter;  // Internal private class
 
 class CachedWriter {
   AssemblyWriter *AW;
@@ -37,16 +48,13 @@ public:
   inline CachedWriter &operator<<(Value *X) {
     return *this << (const Value*)X;
   }
-  inline CachedWriter &operator<<(const Module *X) {
-    return *this << (const Value*)X;
-  }
   inline CachedWriter &operator<<(const GlobalVariable *X) {
     return *this << (const Value*)X;
   }
   inline CachedWriter &operator<<(const Function *X) {
     return *this << (const Value*)X;
   }
-  inline CachedWriter &operator<<(const FunctionArgument *X) {
+  inline CachedWriter &operator<<(const Argument *X) {
     return *this << (const Value*)X;
   }
   inline CachedWriter &operator<<(const BasicBlock *X) {
@@ -76,4 +84,6 @@ public:
   }
 };
 
+} // End llvm namespace
+
 #endif