mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24: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@202953 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -252,12 +252,12 @@ struct LCSSA : public FunctionPass {
|
||||
LoopInfo *LI;
|
||||
ScalarEvolution *SE;
|
||||
|
||||
virtual bool runOnFunction(Function &F);
|
||||
bool runOnFunction(Function &F) override;
|
||||
|
||||
/// This transformation requires natural loop information & requires that
|
||||
/// loop preheaders be inserted into the CFG. It maintains both of these,
|
||||
/// as well as the CFG. It also requires dominator information.
|
||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const override {
|
||||
AU.setPreservesCFG();
|
||||
|
||||
AU.addRequired<DominatorTreeWrapperPass>();
|
||||
@ -270,7 +270,7 @@ struct LCSSA : public FunctionPass {
|
||||
private:
|
||||
bool processLoop(Loop &L);
|
||||
|
||||
virtual void verifyAnalysis() const;
|
||||
void verifyAnalysis() const override;
|
||||
};
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user