[llvm] r350125 - [CodeView] Extend the `MemberAttributes` interface with the `isStatic` method
Aleksandr Urakov via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 28 09:03:24 PST 2018
Author: aleksandr.urakov
Date: Fri Dec 28 09:03:24 2018
New Revision: 350125
URL: http://llvm.org/viewvc/llvm-project?rev=350125&view=rev
Log:
[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
Modified:
llvm/trunk/include/llvm/DebugInfo/CodeView/TypeRecord.h
Modified: llvm/trunk/include/llvm/DebugInfo/CodeView/TypeRecord.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/DebugInfo/CodeView/TypeRecord.h?rev=350125&r1=350124&r2=350125&view=diff
==============================================================================
--- llvm/trunk/include/llvm/DebugInfo/CodeView/TypeRecord.h (original)
+++ llvm/trunk/include/llvm/DebugInfo/CodeView/TypeRecord.h Fri Dec 28 09:03:24 2018
@@ -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
More information about the llvm-commits
mailing list