forked from OSchip/llvm-project
Remove unused member variable.
Fixes pr20904. llvm-svn: 219706
This commit is contained in:
parent
86187d231a
commit
76936ebc49
|
@ -80,8 +80,7 @@ class MachineFunction {
|
|||
const TargetSubtargetInfo *STI;
|
||||
MCContext &Ctx;
|
||||
MachineModuleInfo &MMI;
|
||||
GCModuleInfo *GMI;
|
||||
|
||||
|
||||
// RegInfo - Information about each register in use in the function.
|
||||
MachineRegisterInfo *RegInfo;
|
||||
|
||||
|
@ -141,12 +140,10 @@ class MachineFunction {
|
|||
void operator=(const MachineFunction&) LLVM_DELETED_FUNCTION;
|
||||
public:
|
||||
MachineFunction(const Function *Fn, const TargetMachine &TM,
|
||||
unsigned FunctionNum, MachineModuleInfo &MMI,
|
||||
GCModuleInfo* GMI);
|
||||
unsigned FunctionNum, MachineModuleInfo &MMI);
|
||||
~MachineFunction();
|
||||
|
||||
MachineModuleInfo &getMMI() const { return MMI; }
|
||||
GCModuleInfo *getGMI() const { return GMI; }
|
||||
MCContext &getContext() const { return Ctx; }
|
||||
|
||||
/// 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,
|
||||
unsigned FunctionNum, MachineModuleInfo &mmi,
|
||||
GCModuleInfo *gmi)
|
||||
unsigned FunctionNum, MachineModuleInfo &mmi)
|
||||
: Fn(F), Target(TM), STI(TM.getSubtargetImpl()), Ctx(mmi.getContext()),
|
||||
MMI(mmi), GMI(gmi) {
|
||||
MMI(mmi) {
|
||||
if (STI->getRegisterInfo())
|
||||
RegInfo = new (Allocator) MachineRegisterInfo(this);
|
||||
else
|
||||
|
|
|
@ -46,8 +46,7 @@ bool MachineFunctionAnalysis::doInitialization(Module &M) {
|
|||
bool MachineFunctionAnalysis::runOnFunction(Function &F) {
|
||||
assert(!MF && "MachineFunctionAnalysis already initialized!");
|
||||
MF = new MachineFunction(&F, TM, NextFnNum++,
|
||||
getAnalysis<MachineModuleInfo>(),
|
||||
getAnalysisIfAvailable<GCModuleInfo>());
|
||||
getAnalysis<MachineModuleInfo>());
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue