Expose passinfo from BreakCriticalEdges pass so that it may be "Required" by
[oota-llvm.git] / include / llvm / Assembly / CachedWriter.h
index cccf0377a4c80e453a7cfce7e9d9fb210fb24dbd..c1ef1037ee3f1f16ae9b7e03ec43bed74526956b 100644 (file)
 #ifndef LLVM_ASSEMBLY_CACHED_WRITER_H
 #define LLVM_ASSEMBLY_CACHED_WRITER_H
 
-#include "llvm/Assembly/Writer.h"
+#include "llvm/Value.h"
 #include <iostream>
 
-class AssemblyWriter;  // Internal private class
+class Module;
+class PointerType;
 class SlotCalculator;
+class AssemblyWriter;  // Internal private class
 
 class CachedWriter {
   AssemblyWriter *AW;
@@ -37,16 +39,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 Method *X) {
+  inline CachedWriter &operator<<(const Function *X) {
     return *this << (const Value*)X;
   }
-  inline CachedWriter &operator<<(const MethodArgument *X) {
+  inline CachedWriter &operator<<(const Argument *X) {
     return *this << (const Value*)X;
   }
   inline CachedWriter &operator<<(const BasicBlock *X) {