mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-10 02:17:46 +00:00
[C++11] Add 'override' keywords and remove 'virtual'. Additionally add 'final' and leave 'virtual' on some methods that are marked virtual without overriding anything and have no obvious overrides themselves. ARM64 edition
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@207509 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -87,11 +87,11 @@ public:
|
||||
static char ID;
|
||||
ARM64PromoteConstant() : ModulePass(ID) {}
|
||||
|
||||
virtual const char *getPassName() const { return "ARM64 Promote Constant"; }
|
||||
const char *getPassName() const override { return "ARM64 Promote Constant"; }
|
||||
|
||||
/// Iterate over the functions and promote the interesting constants into
|
||||
/// global variables with module scope.
|
||||
bool runOnModule(Module &M) {
|
||||
bool runOnModule(Module &M) override {
|
||||
DEBUG(dbgs() << getPassName() << '\n');
|
||||
bool Changed = false;
|
||||
for (auto &MF : M) {
|
||||
@@ -107,7 +107,7 @@ private:
|
||||
bool runOnFunction(Function &F);
|
||||
|
||||
// This transformation requires dominator info
|
||||
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
|
||||
void getAnalysisUsage(AnalysisUsage &AU) const override {
|
||||
AU.setPreservesCFG();
|
||||
AU.addRequired<DominatorTreeWrapperPass>();
|
||||
AU.addPreserved<DominatorTreeWrapperPass>();
|
||||
|
||||
Reference in New Issue
Block a user