IR: Use format_hex instead of handrolling the conversion. NFC
[oota-llvm.git] / lib / Analysis / RegionInfo.cpp
index 8cd85348fdcc729d323b7149829f406f3a0cf1c1..f59d267303276759d90cf1e11e580789fcc28f62 100644 (file)
@@ -21,6 +21,9 @@
 #include <algorithm>
 #include <iterator>
 #include <set>
+#ifndef NDEBUG
+#include "llvm/Analysis/RegionPrinter.h"
+#endif
 
 using namespace llvm;
 
@@ -103,6 +106,12 @@ void RegionInfo::recalculate(Function &F, DominatorTree *DT_,
   calculate(F);
 }
 
+#ifndef NDEBUG
+void RegionInfo::view() { viewRegion(this); }
+
+void RegionInfo::viewOnly() { viewRegionOnly(this); }
+#endif
+
 //===----------------------------------------------------------------------===//
 // RegionInfoPass implementation
 //