mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 00:17:01 +00:00
[C++11] Add 'override' keyword to virtual methods that override their base class.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203439 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -287,14 +287,14 @@ class ARMMCInstrAnalysis : public MCInstrAnalysis {
|
||||
public:
|
||||
ARMMCInstrAnalysis(const MCInstrInfo *Info) : MCInstrAnalysis(Info) {}
|
||||
|
||||
virtual bool isUnconditionalBranch(const MCInst &Inst) const {
|
||||
bool isUnconditionalBranch(const MCInst &Inst) const override {
|
||||
// BCCs with the "always" predicate are unconditional branches.
|
||||
if (Inst.getOpcode() == ARM::Bcc && Inst.getOperand(1).getImm()==ARMCC::AL)
|
||||
return true;
|
||||
return MCInstrAnalysis::isUnconditionalBranch(Inst);
|
||||
}
|
||||
|
||||
virtual bool isConditionalBranch(const MCInst &Inst) const {
|
||||
bool isConditionalBranch(const MCInst &Inst) const override {
|
||||
// BCCs with the "always" predicate are unconditional branches.
|
||||
if (Inst.getOpcode() == ARM::Bcc && Inst.getOperand(1).getImm()==ARMCC::AL)
|
||||
return false;
|
||||
@@ -302,7 +302,7 @@ public:
|
||||
}
|
||||
|
||||
bool evaluateBranch(const MCInst &Inst, uint64_t Addr,
|
||||
uint64_t Size, uint64_t &Target) const {
|
||||
uint64_t Size, uint64_t &Target) const override {
|
||||
// We only handle PCRel branches for now.
|
||||
if (Info->get(Inst.getOpcode()).OpInfo[0].OperandType!=MCOI::OPERAND_PCREL)
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user