mirror of
https://github.com/RPCSX/llvm.git
synced 2025-01-23 04:35:43 +00:00
[Mips] Fix -Wunused-private-field warning after r263444.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@263454 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
9d31cd8fef
commit
649672485c
@ -29,7 +29,7 @@ namespace llvm {
|
||||
FunctionPass *createMipsModuleISelDagPass(MipsTargetMachine &TM);
|
||||
FunctionPass *createMipsOptimizePICCallPass(MipsTargetMachine &TM);
|
||||
FunctionPass *createMipsDelaySlotFillerPass(MipsTargetMachine &TM);
|
||||
FunctionPass *createMipsHazardSchedule(MipsTargetMachine &tm);
|
||||
FunctionPass *createMipsHazardSchedule();
|
||||
FunctionPass *createMipsLongBranchPass(MipsTargetMachine &TM);
|
||||
FunctionPass *createMipsConstantIslandPass(MipsTargetMachine &tm);
|
||||
} // end namespace llvm;
|
||||
|
@ -1,4 +1,4 @@
|
||||
//===-- MipsHazardSchedule.cpp - Workaround pipeline hazards---------------===//
|
||||
//===-- MipsHazardSchedule.cpp - Workaround pipeline hazards --------------===//
|
||||
//
|
||||
// The LLVM Compiler Infrastructure
|
||||
//
|
||||
@ -69,7 +69,7 @@ typedef MachineBasicBlock::reverse_iterator ReverseIter;
|
||||
class MipsHazardSchedule : public MachineFunctionPass {
|
||||
|
||||
public:
|
||||
MipsHazardSchedule(TargetMachine &tm) : MachineFunctionPass(ID), TM(tm) {}
|
||||
MipsHazardSchedule() : MachineFunctionPass(ID) {}
|
||||
|
||||
const char *getPassName() const override { return "Mips Hazard Schedule"; }
|
||||
|
||||
@ -77,15 +77,14 @@ public:
|
||||
|
||||
private:
|
||||
static char ID;
|
||||
const TargetMachine &TM;
|
||||
};
|
||||
|
||||
char MipsHazardSchedule::ID = 0;
|
||||
} // end of anonymous namespace
|
||||
|
||||
/// Returns a pass that clears pipeline hazards.
|
||||
FunctionPass *llvm::createMipsHazardSchedule(MipsTargetMachine &tm) {
|
||||
return new MipsHazardSchedule(tm);
|
||||
FunctionPass *llvm::createMipsHazardSchedule() {
|
||||
return new MipsHazardSchedule();
|
||||
}
|
||||
|
||||
bool MipsHazardSchedule::runOnMachineFunction(MachineFunction &MF) {
|
||||
|
@ -256,7 +256,7 @@ void MipsPassConfig::addPreEmitPass() {
|
||||
// (new) pass that creates compact branches after the HSP must handle FS
|
||||
// hazards itself or be pipelined before the HSP.
|
||||
addPass(createMipsDelaySlotFillerPass(TM));
|
||||
addPass(createMipsHazardSchedule(TM));
|
||||
addPass(createMipsHazardSchedule());
|
||||
addPass(createMipsLongBranchPass(TM));
|
||||
addPass(createMipsConstantIslandPass(TM));
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user