LazyValueInfo: range'ify some for-loops. No functional change.
[oota-llvm.git] / lib / Analysis / RegionInfo.cpp
index 46aa1bcf0458eac2c5c808a6dfe3b8d191251600..08ebf0d85723670c1a4a6a05c39d9f141c87632a 100644 (file)
@@ -91,10 +91,8 @@ void RegionInfo::updateStatistics(Region *R) {
     ++numSimpleRegions;
 }
 
-void RegionInfo::RegionInfo::recalculate(Function &F,
-                                         DominatorTree *DT_,
-                                         PostDominatorTree *PDT_,
-                                         DominanceFrontier *DF_) {
+void RegionInfo::recalculate(Function &F, DominatorTree *DT_,
+                             PostDominatorTree *PDT_, DominanceFrontier *DF_) {
   DT = DT_;
   PDT = PDT_;
   DF = DF_;
@@ -147,9 +145,11 @@ void RegionInfoPass::print(raw_ostream &OS, const Module *) const {
   RI.print(OS);
 }
 
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
 void RegionInfoPass::dump() const {
   RI.dump();
 }
+#endif
 
 char RegionInfoPass::ID = 0;