mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-10-21 12:02:58 +02:00
[Hexagon] Adding override specifier and removing erroneous assertion
llvm-svn: 238664
This commit is contained in:
parent
6925aa5ef4
commit
60beb2e4b6
@ -39,8 +39,6 @@ public:
|
|||||||
|
|
||||||
bool isInstRelaxable(MCInst const &HMI) const {
|
bool isInstRelaxable(MCInst const &HMI) const {
|
||||||
const MCInstrDesc &MCID = HexagonMCInstrInfo::getDesc(*MCII, HMI);
|
const MCInstrDesc &MCID = HexagonMCInstrInfo::getDesc(*MCII, HMI);
|
||||||
assert(&MCID && "invalid instruction");
|
|
||||||
|
|
||||||
bool Relaxable = false;
|
bool Relaxable = false;
|
||||||
// Branches and loop-setup insns are handled as necessary by relaxation.
|
// Branches and loop-setup insns are handled as necessary by relaxation.
|
||||||
if (llvm::HexagonMCInstrInfo::getType(*MCII, HMI) == HexagonII::TypeJ ||
|
if (llvm::HexagonMCInstrInfo::getType(*MCII, HMI) == HexagonII::TypeJ ||
|
||||||
@ -58,7 +56,7 @@ public:
|
|||||||
/// relaxation.
|
/// relaxation.
|
||||||
///
|
///
|
||||||
/// \param Inst - The instruction to test.
|
/// \param Inst - The instruction to test.
|
||||||
bool mayNeedRelaxation(MCInst const &Inst) const {
|
bool mayNeedRelaxation(MCInst const &Inst) const override {
|
||||||
assert(HexagonMCInstrInfo::isBundle(Inst));
|
assert(HexagonMCInstrInfo::isBundle(Inst));
|
||||||
bool PreviousIsExtender = false;
|
bool PreviousIsExtender = false;
|
||||||
for (auto const &I : HexagonMCInstrInfo::bundleInstructions(Inst)) {
|
for (auto const &I : HexagonMCInstrInfo::bundleInstructions(Inst)) {
|
||||||
@ -77,7 +75,7 @@ public:
|
|||||||
bool fixupNeedsRelaxationAdvanced(const MCFixup &Fixup, bool Resolved,
|
bool fixupNeedsRelaxationAdvanced(const MCFixup &Fixup, bool Resolved,
|
||||||
uint64_t Value,
|
uint64_t Value,
|
||||||
const MCRelaxableFragment *DF,
|
const MCRelaxableFragment *DF,
|
||||||
const MCAsmLayout &Layout) const {
|
const MCAsmLayout &Layout) const override {
|
||||||
MCInst const &MCB = DF->getInst();
|
MCInst const &MCB = DF->getInst();
|
||||||
assert(HexagonMCInstrInfo::isBundle(MCB));
|
assert(HexagonMCInstrInfo::isBundle(MCB));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user