[Support] Add type-safe alternative to llvm::format()
[oota-llvm.git] / include / llvm / Support / raw_ostream.h
index 6966e9a10d48ca6133681cc8faeb3c6529082836..c9ef637940db85a862c8cbcf792d8304732b2f5e 100644 (file)
@@ -21,6 +21,8 @@
 
 namespace llvm {
   class format_object_base;
+  class FormattedString;
+  class FormattedNumber;
   template <typename T>
   class SmallVectorImpl;
 
@@ -211,6 +213,12 @@ public:
   // Formatted output, see the format() function in Support/Format.h.
   raw_ostream &operator<<(const format_object_base &Fmt);
 
+  // Formatted output, see the leftJustify() function in Support/Format.h.
+  raw_ostream &operator<<(const FormattedString &);
+  
+  // Formatted output, see the formatHex() function in Support/Format.h.
+  raw_ostream &operator<<(const FormattedNumber &);
+  
   /// indent - Insert 'NumSpaces' spaces.
   raw_ostream &indent(unsigned NumSpaces);