[llvm] r280726 - [MCTargetDesc] Delete dead code. Found by GCC7 -Wunused-function.
Davide Italiano via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 6 11:02:10 PDT 2016
Author: davide
Date: Tue Sep 6 13:02:09 2016
New Revision: 280726
URL: http://llvm.org/viewvc/llvm-project?rev=280726&view=rev
Log:
[MCTargetDesc] Delete dead code. Found by GCC7 -Wunused-function.
Also unbreak newer gcc build with -Werror.
Modified:
llvm/trunk/lib/Target/Lanai/MCTargetDesc/LanaiMCCodeEmitter.cpp
Modified: llvm/trunk/lib/Target/Lanai/MCTargetDesc/LanaiMCCodeEmitter.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Lanai/MCTargetDesc/LanaiMCCodeEmitter.cpp?rev=280726&r1=280725&r2=280726&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Lanai/MCTargetDesc/LanaiMCCodeEmitter.cpp (original)
+++ llvm/trunk/lib/Target/Lanai/MCTargetDesc/LanaiMCCodeEmitter.cpp Tue Sep 6 13:02:09 2016
@@ -75,10 +75,6 @@ public:
SmallVectorImpl<MCFixup> &Fixups,
const MCSubtargetInfo &SubtargetInfo) const;
- unsigned getCallTargetOpValue(const MCInst &Inst, unsigned OpNo,
- SmallVectorImpl<MCFixup> &Fixups,
- const MCSubtargetInfo &SubtargetInfo) const;
-
void encodeInstruction(const MCInst &Inst, raw_ostream &Ostream,
SmallVectorImpl<MCFixup> &Fixups,
const MCSubtargetInfo &SubtargetInfo) const override;
@@ -288,19 +284,6 @@ LanaiMCCodeEmitter::getSplsOpValue(const
return Encoding;
}
-unsigned LanaiMCCodeEmitter::getCallTargetOpValue(
- const MCInst &Inst, unsigned OpNo, SmallVectorImpl<MCFixup> &Fixups,
- const MCSubtargetInfo &SubtargetInfo) const {
- const MCOperand &MCOp = Inst.getOperand(OpNo);
- if (MCOp.isReg() || MCOp.isImm())
- return getMachineOpValue(Inst, MCOp, Fixups, SubtargetInfo);
-
- Fixups.push_back(MCFixup::create(
- 0, MCOp.getExpr(), static_cast<MCFixupKind>(Lanai::FIXUP_LANAI_25)));
-
- return 0;
-}
-
unsigned LanaiMCCodeEmitter::getBranchTargetOpValue(
const MCInst &Inst, unsigned OpNo, SmallVectorImpl<MCFixup> &Fixups,
const MCSubtargetInfo &SubtargetInfo) const {
More information about the llvm-commits
mailing list