MachineFunction no longer needs Annotation.
llvm-svn: 77704
This commit is contained in:
parent
1b2596ba36
commit
7baae4b355
|
@ -21,7 +21,6 @@
|
|||
#include "llvm/ADT/ilist.h"
|
||||
#include "llvm/Support/DebugLoc.h"
|
||||
#include "llvm/CodeGen/MachineBasicBlock.h"
|
||||
#include "llvm/Support/Annotation.h"
|
||||
#include "llvm/Support/Allocator.h"
|
||||
#include "llvm/Support/Recycler.h"
|
||||
|
||||
|
@ -66,7 +65,7 @@ struct MachineFunctionInfo {
|
|||
virtual ~MachineFunctionInfo() {}
|
||||
};
|
||||
|
||||
class MachineFunction : private Annotation {
|
||||
class MachineFunction {
|
||||
Function *Fn;
|
||||
const TargetMachine &Target;
|
||||
|
||||
|
|
|
@ -80,8 +80,7 @@ void ilist_traits<MachineBasicBlock>::deleteNode(MachineBasicBlock *MBB) {
|
|||
|
||||
MachineFunction::MachineFunction(Function *F,
|
||||
const TargetMachine &TM)
|
||||
: Annotation(AnnotationManager::getID("CodeGen::MachineCodeForFunction")),
|
||||
Fn(F), Target(TM) {
|
||||
: Fn(F), Target(TM) {
|
||||
if (TM.getRegisterInfo())
|
||||
RegInfo = new (Allocator.Allocate<MachineRegisterInfo>())
|
||||
MachineRegisterInfo(*TM.getRegisterInfo());
|
||||
|
|
Loading…
Reference in New Issue