@@ -104,6 +104,7 @@ static void addIncomingValuesToPHIs(MachineBasicBlock *Successor,
104104 }
105105}
106106
107+ namespace {
107108struct BlockSplitInfo {
108109 MachineInstr *OrigBranch;
109110 MachineInstr *SplitBefore;
@@ -127,6 +128,7 @@ struct BlockSplitInfo {
127128 return true ;
128129 }
129130};
131+ } // end anonymous namespace
130132
131133// / Splits a MachineBasicBlock to branch before \p SplitBefore. The original
132134// / branch is \p OrigBranch. The target of the new branch can either be the same
@@ -350,7 +352,6 @@ computeBranchTargetAndInversion(unsigned CROp, unsigned BROp, bool UsingDef1,
350352namespace {
351353
352354class PPCReduceCRLogicals : public MachineFunctionPass {
353-
354355public:
355356 static char ID;
356357 struct CRLogicalOpInfo {
@@ -405,9 +406,7 @@ class PPCReduceCRLogicals : public MachineFunctionPass {
405406 }
406407
407408public:
408- PPCReduceCRLogicals () : MachineFunctionPass(ID) {
409- initializePPCReduceCRLogicalsPass (*PassRegistry::getPassRegistry ());
410- }
409+ PPCReduceCRLogicals () : MachineFunctionPass(ID) {}
411410
412411 MachineInstr *lookThroughCRCopy (unsigned Reg, unsigned &Subreg,
413412 MachineInstr *&CpDef);
@@ -431,6 +430,7 @@ class PPCReduceCRLogicals : public MachineFunctionPass {
431430 MachineFunctionPass::getAnalysisUsage (AU);
432431 }
433432};
433+ } // end anonymous namespace
434434
435435#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
436436LLVM_DUMP_METHOD void PPCReduceCRLogicals::CRLogicalOpInfo::dump () {
@@ -726,8 +726,6 @@ void PPCReduceCRLogicals::collectCRLogicals() {
726726 }
727727}
728728
729- } // end anonymous namespace
730-
731729INITIALIZE_PASS_BEGIN (PPCReduceCRLogicals, DEBUG_TYPE,
732730 " PowerPC Reduce CR logical Operation" , false , false )
733731INITIALIZE_PASS_DEPENDENCY(MachineDominatorTreeWrapperPass)
0 commit comments