diff options
author | Anders Carlsson <andersca@mac.com> | 2011-01-24 16:26:15 +0000 |
---|---|---|
committer | Anders Carlsson <andersca@mac.com> | 2011-01-24 16:26:15 +0000 |
commit | cb88a1f968c3d4eb451dafb421a8d9578edcbf1a (patch) | |
tree | c3a526323d5b899cbad4202ad847d83db35f15c6 /lib/CodeGen/CGExprCXX.cpp | |
parent | 8dde14e7f43a4b29e592b3e8e576eb467ddb6c6e (diff) |
Use attributes for all the override control specifiers.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@124122 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CGExprCXX.cpp')
-rw-r--r-- | lib/CodeGen/CGExprCXX.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/CodeGen/CGExprCXX.cpp b/lib/CodeGen/CGExprCXX.cpp index 9ce90c0ce8..7177a64e74 100644 --- a/lib/CodeGen/CGExprCXX.cpp +++ b/lib/CodeGen/CGExprCXX.cpp @@ -65,12 +65,12 @@ static bool canDevirtualizeMemberFunctionCalls(ASTContext &Context, // If the member function is marked 'final', we know that it can't be // overridden and can therefore devirtualize it. - if (MD->isMarkedFinal()) + if (MD->hasAttr<FinalAttr>()) return true; // Similarly, if the class itself is marked 'final' it can't be overridden // and we can therefore devirtualize the member function call. - if (MD->getParent()->isMarkedFinal()) + if (MD->getParent()->hasAttr<FinalAttr>()) return true; if (const DeclRefExpr *DRE = dyn_cast<DeclRefExpr>(Base)) { |