1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00
llvm-mirror/lib/CodeGen/MachineBasicBlock.cpp
Chris Lattner ffa0482331 Updates to match misha's changes
llvm-svn: 4302
2002-10-28 00:37:53 +00:00

29 lines
844 B
C++

//===-- llvm/CodeGen/MachineCodeForBasicBlock.cpp ---------------*- C++ -*--=//
//
// Purpose:
// Collect the sequence of machine instructions for a basic block.
//===---------------------------------------------------------------------===//
#include "llvm/CodeGen/MachineCodeForBasicBlock.h"
AnnotationID MCFBB_AID(
AnnotationManager::getID("CodeGen::MachineBasicBlock"));
static Annotation *CreateMCFBB(AnnotationID AID, const Annotable *, void *) {
assert(AID == MCFBB_AID);
return new MachineBasicBlock(); // Invoke constructor!
}
// Register the annotation with the annotation factory
static struct MCFBBInitializer {
MCFBBInitializer() {
AnnotationManager::registerAnnotationFactory(MCFBB_AID, &CreateMCFBB);
}
} RegisterCreateMCFBB;
MachineBasicBlock::MachineBasicBlock()
: Annotation(MCFBB_AID)
{}