[CodeView] Extend the `MemberAttributes` interface with the `isStatic` method

Summary:
This patch extends the MemberAttributes interface with the isStatic method.
It is needed for D56126.

Reviewers: zturner, rnk

Reviewed By: zturner

Differential Revision: https://reviews.llvm.org/D56127

llvm-svn: 350125
This commit is contained in:
Aleksandr Urakov 2018-12-28 17:03:24 +00:00
parent d1ca603770
commit d5b685a9b2
1 changed files with 5 additions and 0 deletions

View File

@ -95,6 +95,11 @@ struct MemberAttributes {
return MP == MethodKind::IntroducingVirtual ||
MP == MethodKind::PureIntroducingVirtual;
}
/// Is this method static.
bool isStatic() const {
return getMethodKind() == MethodKind::Static;
}
};
// Does not correspond to any tag, this is the tail of an LF_POINTER record