666d5477b3a8e34f55e60361a665f556a857fb24
[oota-llvm.git] / lib / CodeGen / MachineBasicBlock.cpp
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