1 //===-- llvm/CodeGen/MachineCodeForBasicBlock.cpp ---------------*- C++ -*--=//
4 // 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::MachineCodeForBasicBlock"));
12 static Annotation *CreateMCFBB(AnnotationID AID, const Annotable *, void *) {
13 assert(AID == MCFBB_AID);
14 return new MachineCodeForBasicBlock(); // Invoke constructor!
17 // Register the annotation with the annotation factory
18 static struct MCFBBInitializer {
20 AnnotationManager::registerAnnotationFactory(MCFBB_AID, &CreateMCFBB);
22 } RegisterCreateMCFBB;
25 MachineCodeForBasicBlock::MachineCodeForBasicBlock()
26 : Annotation(MCFBB_AID)