mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
[C++11] Add 'override' keyword to IR library.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@202939 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -68,7 +68,7 @@ public:
|
||||
|
||||
// Implement the PassRegistrationListener callbacks used to populate our map
|
||||
//
|
||||
virtual void passRegistered(const PassInfo *P) {
|
||||
void passRegistered(const PassInfo *P) override {
|
||||
if (ignorablePass(P) || !Opt) return;
|
||||
if (findOption(P->getPassArgument()) != getNumOptions()) {
|
||||
errs() << "Two passes with the same argument (-"
|
||||
@@ -77,11 +77,11 @@ public:
|
||||
}
|
||||
addLiteralOption(P->getPassArgument(), P, P->getPassName());
|
||||
}
|
||||
virtual void passEnumerate(const PassInfo *P) { passRegistered(P); }
|
||||
void passEnumerate(const PassInfo *P) override { passRegistered(P); }
|
||||
|
||||
// printOptionInfo - Print out information about this option. Override the
|
||||
// default implementation to sort the table before we print...
|
||||
virtual void printOptionInfo(const cl::Option &O, size_t GlobalWidth) const {
|
||||
void printOptionInfo(const cl::Option &O, size_t GlobalWidth) const override {
|
||||
PassNameParser *PNP = const_cast<PassNameParser*>(this);
|
||||
array_pod_sort(PNP->Values.begin(), PNP->Values.end(), ValLessThan);
|
||||
cl::parser<const PassInfo*>::printOptionInfo(O, GlobalWidth);
|
||||
@@ -107,7 +107,9 @@ private:
|
||||
Filter filter;
|
||||
|
||||
public:
|
||||
bool ignorablePassImpl(const PassInfo *P) const { return !filter(*P); }
|
||||
bool ignorablePassImpl(const PassInfo *P) const override {
|
||||
return !filter(*P);
|
||||
}
|
||||
};
|
||||
|
||||
///===----------------------------------------------------------------------===//
|
||||
|
Reference in New Issue
Block a user