[llvm] r263454 - [Mips] Fix -Wunused-private-field warning after r263444.
Daniel Sanders via llvm-commits
llvm-commits at lists.llvm.org
Mon Mar 14 11:49:51 PDT 2016
Thanks.
________________________________________
From: llvm-commits [llvm-commits-bounces at lists.llvm.org] on behalf of Chad Rosier via llvm-commits [llvm-commits at lists.llvm.org]
Sent: 14 March 2016 18:10
To: llvm-commits at lists.llvm.org
Subject: [llvm] r263454 - [Mips] Fix -Wunused-private-field warning after r263444.
Author: mcrosier
Date: Mon Mar 14 13:10:20 2016
New Revision: 263454
URL: http://llvm.org/viewvc/llvm-project?rev=263454&view=rev
Log:
[Mips] Fix -Wunused-private-field warning after r263444.
Modified:
llvm/trunk/lib/Target/Mips/Mips.h
llvm/trunk/lib/Target/Mips/MipsHazardSchedule.cpp
llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp
Modified: llvm/trunk/lib/Target/Mips/Mips.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/Mips.h?rev=263454&r1=263453&r2=263454&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/Mips.h (original)
+++ llvm/trunk/lib/Target/Mips/Mips.h Mon Mar 14 13:10:20 2016
@@ -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;
Modified: llvm/trunk/lib/Target/Mips/MipsHazardSchedule.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsHazardSchedule.cpp?rev=263454&r1=263453&r2=263454&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsHazardSchedule.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsHazardSchedule.cpp Mon Mar 14 13:10:20 2016
@@ -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_itera
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) {
Modified: llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp?rev=263454&r1=263453&r2=263454&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp (original)
+++ llvm/trunk/lib/Target/Mips/MipsTargetMachine.cpp Mon Mar 14 13:10:20 2016
@@ -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));
}
_______________________________________________
llvm-commits mailing list
llvm-commits at lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-commits
More information about the llvm-commits
mailing list