diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2016-06-28 14:26:39 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2016-06-28 14:26:39 +0000 |
commit | 6f7c280a3ddefab85f0ff436c94e7f33a075abec (patch) | |
tree | 3aea3569c49e29a4ece80973587aa9ccaaeae30a | |
parent | 25cd6139e3ecec7796de11b2aa9f30779f145b92 (diff) | |
download | bcm5719-llvm-6f7c280a3ddefab85f0ff436c94e7f33a075abec.tar.gz bcm5719-llvm-6f7c280a3ddefab85f0ff436c94e7f33a075abec.zip |
Delete dead code. NFC.
llvm-svn: 274020
-rw-r--r-- | llvm/lib/Target/Mips/Mips.h | 2 | ||||
-rw-r--r-- | llvm/lib/Target/Mips/MipsConstantIslandPass.cpp | 16 | ||||
-rw-r--r-- | llvm/lib/Target/Mips/MipsTargetMachine.cpp | 2 |
3 files changed, 8 insertions, 12 deletions
diff --git a/llvm/lib/Target/Mips/Mips.h b/llvm/lib/Target/Mips/Mips.h index 639e189dee6..d9faf3325ca 100644 --- a/llvm/lib/Target/Mips/Mips.h +++ b/llvm/lib/Target/Mips/Mips.h @@ -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 diff --git a/llvm/lib/Target/Mips/MipsConstantIslandPass.cpp b/llvm/lib/Target/Mips/MipsConstantIslandPass.cpp index 3b8d3a2ef7d..b58c886c7fc 100644 --- a/llvm/lib/Target/Mips/MipsConstantIslandPass.cpp +++ b/llvm/lib/Target/Mips/MipsConstantIslandPass.cpp @@ -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) { diff --git a/llvm/lib/Target/Mips/MipsTargetMachine.cpp b/llvm/lib/Target/Mips/MipsTargetMachine.cpp index 79b0b455ccd..8366129b205 100644 --- a/llvm/lib/Target/Mips/MipsTargetMachine.cpp +++ b/llvm/lib/Target/Mips/MipsTargetMachine.cpp @@ -270,5 +270,5 @@ void MipsPassConfig::addPreEmitPass() { addPass(createMipsDelaySlotFillerPass(TM)); addPass(createMipsHazardSchedule()); addPass(createMipsLongBranchPass(TM)); - addPass(createMipsConstantIslandPass(TM)); + addPass(createMipsConstantIslandPass()); } |