mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-13 14:47:00 +00:00
Remove unused member variable.
Fixes pr20904. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219706 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
6a529850f3
commit
d1494d5ff3
@ -80,8 +80,7 @@ class MachineFunction {
|
|||||||
const TargetSubtargetInfo *STI;
|
const TargetSubtargetInfo *STI;
|
||||||
MCContext &Ctx;
|
MCContext &Ctx;
|
||||||
MachineModuleInfo &MMI;
|
MachineModuleInfo &MMI;
|
||||||
GCModuleInfo *GMI;
|
|
||||||
|
|
||||||
// RegInfo - Information about each register in use in the function.
|
// RegInfo - Information about each register in use in the function.
|
||||||
MachineRegisterInfo *RegInfo;
|
MachineRegisterInfo *RegInfo;
|
||||||
|
|
||||||
@ -141,12 +140,10 @@ class MachineFunction {
|
|||||||
void operator=(const MachineFunction&) LLVM_DELETED_FUNCTION;
|
void operator=(const MachineFunction&) LLVM_DELETED_FUNCTION;
|
||||||
public:
|
public:
|
||||||
MachineFunction(const Function *Fn, const TargetMachine &TM,
|
MachineFunction(const Function *Fn, const TargetMachine &TM,
|
||||||
unsigned FunctionNum, MachineModuleInfo &MMI,
|
unsigned FunctionNum, MachineModuleInfo &MMI);
|
||||||
GCModuleInfo* GMI);
|
|
||||||
~MachineFunction();
|
~MachineFunction();
|
||||||
|
|
||||||
MachineModuleInfo &getMMI() const { return MMI; }
|
MachineModuleInfo &getMMI() const { return MMI; }
|
||||||
GCModuleInfo *getGMI() const { return GMI; }
|
|
||||||
MCContext &getContext() const { return Ctx; }
|
MCContext &getContext() const { return Ctx; }
|
||||||
|
|
||||||
/// getFunction - Return the LLVM function that this machine code represents
|
/// getFunction - Return the LLVM function that this machine code represents
|
||||||
|
@ -53,10 +53,9 @@ void ilist_traits<MachineBasicBlock>::deleteNode(MachineBasicBlock *MBB) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
MachineFunction::MachineFunction(const Function *F, const TargetMachine &TM,
|
MachineFunction::MachineFunction(const Function *F, const TargetMachine &TM,
|
||||||
unsigned FunctionNum, MachineModuleInfo &mmi,
|
unsigned FunctionNum, MachineModuleInfo &mmi)
|
||||||
GCModuleInfo *gmi)
|
|
||||||
: Fn(F), Target(TM), STI(TM.getSubtargetImpl()), Ctx(mmi.getContext()),
|
: Fn(F), Target(TM), STI(TM.getSubtargetImpl()), Ctx(mmi.getContext()),
|
||||||
MMI(mmi), GMI(gmi) {
|
MMI(mmi) {
|
||||||
if (STI->getRegisterInfo())
|
if (STI->getRegisterInfo())
|
||||||
RegInfo = new (Allocator) MachineRegisterInfo(this);
|
RegInfo = new (Allocator) MachineRegisterInfo(this);
|
||||||
else
|
else
|
||||||
|
@ -46,8 +46,7 @@ bool MachineFunctionAnalysis::doInitialization(Module &M) {
|
|||||||
bool MachineFunctionAnalysis::runOnFunction(Function &F) {
|
bool MachineFunctionAnalysis::runOnFunction(Function &F) {
|
||||||
assert(!MF && "MachineFunctionAnalysis already initialized!");
|
assert(!MF && "MachineFunctionAnalysis already initialized!");
|
||||||
MF = new MachineFunction(&F, TM, NextFnNum++,
|
MF = new MachineFunction(&F, TM, NextFnNum++,
|
||||||
getAnalysis<MachineModuleInfo>(),
|
getAnalysis<MachineModuleInfo>());
|
||||||
getAnalysisIfAvailable<GCModuleInfo>());
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user