Sink DwarfUnit::LabelBegin down into DwarfCompileUnit since that's the only place...
[oota-llvm.git] / lib / CodeGen / MachineRegionInfo.cpp
index c54a794d75cc586f6940d8015d694a986ec3b3c5..5a5035ecd7864a363cb16e6812560873a73b91e0 100644 (file)
@@ -4,6 +4,8 @@
 #include "llvm/ADT/Statistic.h"
 #include "llvm/Analysis/RegionInfoImpl.h"
 
+#define DEBUG_TYPE "region"
+
 using namespace llvm;
 
 STATISTIC(numMachineRegions,       "The # of machine regions");
@@ -49,11 +51,10 @@ void MachineRegionInfo::updateStatistics(MachineRegion *R) {
     ++numMachineSimpleRegions;
 }
 
-void MachineRegionInfo::MachineRegionInfo::recalculate(
-  MachineFunction &F,
-  MachineDominatorTree *DT_,
-  MachinePostDominatorTree *PDT_,
-  MachineDominanceFrontier *DF_) {
+void MachineRegionInfo::recalculate(MachineFunction &F,
+                                    MachineDominatorTree *DT_,
+                                    MachinePostDominatorTree *PDT_,
+                                    MachineDominanceFrontier *DF_) {
   DT = DT_;
   PDT = PDT_;
   DF = DF_;
@@ -111,9 +112,11 @@ void MachineRegionInfoPass::print(raw_ostream &OS, const Module *) const {
   RI.print(OS);
 }
 
+#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
 void MachineRegionInfoPass::dump() const {
   RI.dump();
 }
+#endif
 
 char MachineRegionInfoPass::ID = 0;