Skip to content
AsmPrinter.cpp 69.3 KiB
Newer Older
        O << MAI->getCommentString() << " Inner Loop";
David Greene's avatar
 
David Greene committed
      }

      // Add parent loop information
      for (const MachineLoop *CurLoop = loop->getParentLoop();
           CurLoop;
           CurLoop = CurLoop->getParentLoop()) {
        MachineBasicBlock *Header = CurLoop->getHeader();
        assert(Header && "No header for loop");

        O << '\n';
        O.PadToColumn(MAI->getCommentColumn());
        O << MAI->getCommentString();
        O.indent((CurLoop->getLoopDepth()-1)*2)
David Greene's avatar
 
David Greene committed
          << " Inside Loop BB" << getFunctionNumber() << "_"
David Greene's avatar
 
David Greene committed
          << Header->getNumber() << " Depth " << CurLoop->getLoopDepth();
      }
    }
  }
}