Region: Allow user control the printing style of the print function.
[oota-llvm.git] / include / llvm / Analysis / RegionInfo.h
index a36ca110d8c0fb6e1e338bfdbe1ef81096bcab2f..9b4b637fe8396603f63c1d55c63e73adb358db50 100644 (file)
@@ -335,12 +335,16 @@ public:
     return RI;
   }
 
+  /// PrintStyle - Print region in difference ways.
+  enum PrintStyle { PrintNone, PrintBB, PrintRN  };
+
   /// @brief Print the region.
   ///
   /// @param OS The output stream the Region is printed to.
   /// @param printTree Print also the tree of subregions.
   /// @param level The indentation level used for printing.
-  void print(raw_ostream& OS, bool printTree = true, unsigned level = 0) const;
+  void print(raw_ostream& OS, bool printTree = true, unsigned level = 0,
+             enum PrintStyle Style = PrintNone) const;
 
   /// @brief Print the region to stderr.
   void dump() const;