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