Remove dead code in the HexagonMCInst classes. This also fixes

a layering violation in the port and removes calls to getSubtargetImpl.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@227880 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Eric Christopher 2015-02-02 22:28:48 +00:00
parent caf706bf9a
commit dd27f99713
2 changed files with 0 additions and 15 deletions

View File

@ -11,7 +11,6 @@
//
//===----------------------------------------------------------------------===//
#include "HexagonInstrInfo.h"
#include "MCTargetDesc/HexagonBaseInfo.h"
#include "MCTargetDesc/HexagonMCInst.h"
#include "MCTargetDesc/HexagonMCTargetDesc.h"
@ -66,17 +65,6 @@ void HexagonMCInst::resetPacket() {
setPacketEnd(false);
}
// Return the slots used by the insn.
unsigned HexagonMCInst::getUnits(const HexagonTargetMachine *TM) const {
const HexagonInstrInfo *QII = TM->getSubtargetImpl()->getInstrInfo();
const InstrItineraryData *II =
TM->getSubtargetImpl()->getInstrItineraryData();
const InstrStage *IS =
II->beginStage(QII->get(this->getOpcode()).getSchedClass());
return (IS->getUnits());
}
MCInstrDesc const &HexagonMCInst::getDesc() const {
return (MCII->get(getOpcode()));
}

View File

@ -50,9 +50,6 @@ public:
static const size_t packetEndIndex = 1;
void resetPacket();
// Return the slots used by the insn.
unsigned getUnits(const HexagonTargetMachine *TM) const;
// Return the Hexagon ISA class for the insn.
unsigned getType() const;