Delete dead code. NFC.

llvm-svn: 274020
This commit is contained in:
Rafael Espindola 2016-06-28 14:26:39 +00:00
parent 25cd6139e3
commit 6f7c280a3d
3 changed files with 8 additions and 12 deletions

View File

@ -31,7 +31,7 @@ namespace llvm {
FunctionPass *createMipsDelaySlotFillerPass(MipsTargetMachine &TM);
FunctionPass *createMipsHazardSchedule();
FunctionPass *createMipsLongBranchPass(MipsTargetMachine &TM);
FunctionPass *createMipsConstantIslandPass(MipsTargetMachine &tm);
FunctionPass *createMipsConstantIslandPass();
} // end namespace llvm;
#endif

View File

@ -332,8 +332,6 @@ namespace {
/// the branch fix up pass.
bool HasFarJump;
const TargetMachine &TM;
bool IsPIC;
const MipsSubtarget *STI;
const Mips16InstrInfo *TII;
MipsFunctionInfo *MFI;
@ -354,10 +352,9 @@ namespace {
public:
static char ID;
MipsConstantIslands(TargetMachine &tm)
: MachineFunctionPass(ID), TM(tm),
IsPIC(TM.getRelocationModel() == Reloc::PIC_), STI(nullptr),
MF(nullptr), MCP(nullptr), PrescannedForConstants(false) {}
MipsConstantIslands()
: MachineFunctionPass(ID), STI(nullptr), MF(nullptr), MCP(nullptr),
PrescannedForConstants(false) {}
const char *getPassName() const override {
return "Mips Constant Islands";
@ -432,10 +429,9 @@ void MipsConstantIslands::dumpBBs() {
}
});
}
/// createMipsLongBranchPass - Returns a pass that converts branches to long
/// branches.
FunctionPass *llvm::createMipsConstantIslandPass(MipsTargetMachine &tm) {
return new MipsConstantIslands(tm);
/// Returns a pass that converts branches to long branches.
FunctionPass *llvm::createMipsConstantIslandPass() {
return new MipsConstantIslands();
}
bool MipsConstantIslands::runOnMachineFunction(MachineFunction &mf) {

View File

@ -270,5 +270,5 @@ void MipsPassConfig::addPreEmitPass() {
addPass(createMipsDelaySlotFillerPass(TM));
addPass(createMipsHazardSchedule());
addPass(createMipsLongBranchPass(TM));
addPass(createMipsConstantIslandPass(TM));
addPass(createMipsConstantIslandPass());
}