mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-24 08:24:33 +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@202953 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -836,8 +836,8 @@ public:
|
||||
DVIs.pop_back_val()->eraseFromParent();
|
||||
}
|
||||
|
||||
virtual bool isInstInList(Instruction *I,
|
||||
const SmallVectorImpl<Instruction*> &Insts) const {
|
||||
bool isInstInList(Instruction *I,
|
||||
const SmallVectorImpl<Instruction*> &Insts) const override {
|
||||
Value *Ptr;
|
||||
if (LoadInst *LI = dyn_cast<LoadInst>(I))
|
||||
Ptr = LI->getOperand(0);
|
||||
@ -864,7 +864,7 @@ public:
|
||||
return false;
|
||||
}
|
||||
|
||||
virtual void updateDebugInfo(Instruction *Inst) const {
|
||||
void updateDebugInfo(Instruction *Inst) const override {
|
||||
for (SmallVectorImpl<DbgDeclareInst *>::const_iterator I = DDIs.begin(),
|
||||
E = DDIs.end(); I != E; ++I) {
|
||||
DbgDeclareInst *DDI = *I;
|
||||
@ -975,10 +975,10 @@ public:
|
||||
C(0), DL(0), DT(0) {
|
||||
initializeSROAPass(*PassRegistry::getPassRegistry());
|
||||
}
|
||||
bool runOnFunction(Function &F);
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const;
|
||||
bool runOnFunction(Function &F) override;
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const override;
|
||||
|
||||
const char *getPassName() const { return "SROA"; }
|
||||
const char *getPassName() const override { return "SROA"; }
|
||||
static char ID;
|
||||
|
||||
private:
|
||||
|
Reference in New Issue
Block a user