This increases the maximum for MVT::LAST_VALUETYPE
[oota-llvm.git] / include / llvm / Assembly / Writer.h
index 1138919bb4ad76600823b1549bc6b4d6885887f8..5e5fe1560585da65c631baf6e45ebfcc4c1dcdcb 100644 (file)
@@ -18,6 +18,7 @@
 #define LLVM_ASSEMBLY_WRITER_H
 
 #include <iosfwd>
+#include <string>
 
 namespace llvm {
 
@@ -38,8 +39,11 @@ public:
   
   void clear();
   
-  void print(const Type *Ty, raw_ostream &OS);
-  void printAtLeastOneLevel(const Type *Ty, raw_ostream &OS);
+  void print(const Type *Ty, raw_ostream &OS, bool IgnoreTopLevelName = false);
+  
+  void printAtLeastOneLevel(const Type *Ty, raw_ostream &OS) {
+    print(Ty, OS, true);
+  }
   
   /// hasTypeName - Return true if the type has a name in TypeNames, false
   /// otherwise.
@@ -52,7 +56,7 @@ public:
   
 private:
   void CalcTypeName(const Type *Ty, SmallVectorImpl<const Type *> &TypeStack,
-                    raw_ostream &OS);
+                    raw_ostream &OS, bool IgnoreTopLevelName = false);
 };
 
 // WriteTypeSymbolic - This attempts to write the specified type as a symbolic