mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-26 20:26:07 +00:00
MachineFunction no longer needs Annotation.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@77704 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -21,7 +21,6 @@
|
|||||||
#include "llvm/ADT/ilist.h"
|
#include "llvm/ADT/ilist.h"
|
||||||
#include "llvm/Support/DebugLoc.h"
|
#include "llvm/Support/DebugLoc.h"
|
||||||
#include "llvm/CodeGen/MachineBasicBlock.h"
|
#include "llvm/CodeGen/MachineBasicBlock.h"
|
||||||
#include "llvm/Support/Annotation.h"
|
|
||||||
#include "llvm/Support/Allocator.h"
|
#include "llvm/Support/Allocator.h"
|
||||||
#include "llvm/Support/Recycler.h"
|
#include "llvm/Support/Recycler.h"
|
||||||
|
|
||||||
@@ -66,7 +65,7 @@ struct MachineFunctionInfo {
|
|||||||
virtual ~MachineFunctionInfo() {}
|
virtual ~MachineFunctionInfo() {}
|
||||||
};
|
};
|
||||||
|
|
||||||
class MachineFunction : private Annotation {
|
class MachineFunction {
|
||||||
Function *Fn;
|
Function *Fn;
|
||||||
const TargetMachine &Target;
|
const TargetMachine &Target;
|
||||||
|
|
||||||
|
@@ -80,8 +80,7 @@ void ilist_traits<MachineBasicBlock>::deleteNode(MachineBasicBlock *MBB) {
|
|||||||
|
|
||||||
MachineFunction::MachineFunction(Function *F,
|
MachineFunction::MachineFunction(Function *F,
|
||||||
const TargetMachine &TM)
|
const TargetMachine &TM)
|
||||||
: Annotation(AnnotationManager::getID("CodeGen::MachineCodeForFunction")),
|
: Fn(F), Target(TM) {
|
||||||
Fn(F), Target(TM) {
|
|
||||||
if (TM.getRegisterInfo())
|
if (TM.getRegisterInfo())
|
||||||
RegInfo = new (Allocator.Allocate<MachineRegisterInfo>())
|
RegInfo = new (Allocator.Allocate<MachineRegisterInfo>())
|
||||||
MachineRegisterInfo(*TM.getRegisterInfo());
|
MachineRegisterInfo(*TM.getRegisterInfo());
|
||||||
|
Reference in New Issue
Block a user