1 //===-- MachineBasicBlock.cpp ---------------------------------------------===// 2 // 3 // Collect the sequence of machine instructions for a basic block. 4 // 5 //===----------------------------------------------------------------------===// 6 7 #include "llvm/CodeGen/MachineBasicBlock.h" 8 9 AnnotationID MCFBB_AID( 10 AnnotationManager::getID("CodeGen::MachineBasicBlock")); 11 12 static Annotation *CreateMCFBB(AnnotationID AID, const Annotable *, void *) { 13 assert(AID == MCFBB_AID); 14 return new MachineBasicBlock(); // Invoke constructor! 15 } 16 17 // Register the annotation with the annotation factory 18 static struct MCFBBInitializer { 19 MCFBBInitializer() { 20 AnnotationManager::registerAnnotationFactory(MCFBB_AID, &CreateMCFBB); 21 } 22 } RegisterCreateMCFBB; 23 24