2002-10-28 01:41:47 +00:00
|
|
|
//===-- MachineBasicBlock.cpp ---------------------------------------------===//
|
2002-07-08 23:01:11 +00:00
|
|
|
//
|
2002-10-28 01:21:55 +00:00
|
|
|
// Collect the sequence of machine instructions for a basic block.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
2002-07-08 23:01:11 +00:00
|
|
|
|
2002-10-28 01:41:47 +00:00
|
|
|
#include "llvm/CodeGen/MachineBasicBlock.h"
|
2002-07-08 23:01:11 +00:00
|
|
|
|
|
|
|
AnnotationID MCFBB_AID(
|
2002-10-28 00:37:53 +00:00
|
|
|
AnnotationManager::getID("CodeGen::MachineBasicBlock"));
|
2002-07-08 23:01:11 +00:00
|
|
|
|
|
|
|
static Annotation *CreateMCFBB(AnnotationID AID, const Annotable *, void *) {
|
|
|
|
assert(AID == MCFBB_AID);
|
2002-10-28 00:37:53 +00:00
|
|
|
return new MachineBasicBlock(); // Invoke constructor!
|
2002-07-08 23:01:11 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Register the annotation with the annotation factory
|
|
|
|
static struct MCFBBInitializer {
|
|
|
|
MCFBBInitializer() {
|
|
|
|
AnnotationManager::registerAnnotationFactory(MCFBB_AID, &CreateMCFBB);
|
|
|
|
}
|
|
|
|
} RegisterCreateMCFBB;
|
|
|
|
|