diff options
| author | Colin LeMahieu <colinl@codeaurora.org> | 2015-05-30 20:03:07 +0000 |
|---|---|---|
| committer | Colin LeMahieu <colinl@codeaurora.org> | 2015-05-30 20:03:07 +0000 |
| commit | b510fb38f5bdba1d80c570d2b6f4e142cee2a578 (patch) | |
| tree | 0e3b4797fba13602b8e479516404d6673d0a2150 /llvm | |
| parent | 281b6941cfc896f5d675c21d1585b7074d9585d3 (diff) | |
| download | bcm5719-llvm-b510fb38f5bdba1d80c570d2b6f4e142cee2a578.tar.gz bcm5719-llvm-b510fb38f5bdba1d80c570d2b6f4e142cee2a578.zip | |
[Hexagon] Adding override specifier and removing erroneous assertion
llvm-svn: 238664
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/lib/Target/Hexagon/MCTargetDesc/HexagonAsmBackend.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonAsmBackend.cpp b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonAsmBackend.cpp index 270c3a19dca..ec1309e3c2a 100644 --- a/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonAsmBackend.cpp +++ b/llvm/lib/Target/Hexagon/MCTargetDesc/HexagonAsmBackend.cpp @@ -39,8 +39,6 @@ public: bool isInstRelaxable(MCInst const &HMI) const { const MCInstrDesc &MCID = HexagonMCInstrInfo::getDesc(*MCII, HMI); - assert(&MCID && "invalid instruction"); - bool Relaxable = false; // Branches and loop-setup insns are handled as necessary by relaxation. if (llvm::HexagonMCInstrInfo::getType(*MCII, HMI) == HexagonII::TypeJ || @@ -58,7 +56,7 @@ public: /// relaxation. /// /// \param Inst - The instruction to test. - bool mayNeedRelaxation(MCInst const &Inst) const { + bool mayNeedRelaxation(MCInst const &Inst) const override { assert(HexagonMCInstrInfo::isBundle(Inst)); bool PreviousIsExtender = false; for (auto const &I : HexagonMCInstrInfo::bundleInstructions(Inst)) { @@ -77,7 +75,7 @@ public: bool fixupNeedsRelaxationAdvanced(const MCFixup &Fixup, bool Resolved, uint64_t Value, const MCRelaxableFragment *DF, - const MCAsmLayout &Layout) const { + const MCAsmLayout &Layout) const override { MCInst const &MCB = DF->getInst(); assert(HexagonMCInstrInfo::isBundle(MCB)); |

