From 6c199314a74b6e3869881d90d253e69517e63a3d Mon Sep 17 00:00:00 2001 From: Aleksandr Urakov Date: Fri, 28 Dec 2018 17:03:24 +0000 Subject: [PATCH] [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 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350125 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/DebugInfo/CodeView/TypeRecord.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/llvm/DebugInfo/CodeView/TypeRecord.h b/include/llvm/DebugInfo/CodeView/TypeRecord.h index e7b5293dc51..7b4a30ee622 100644 --- a/include/llvm/DebugInfo/CodeView/TypeRecord.h +++ b/include/llvm/DebugInfo/CodeView/TypeRecord.h @@ -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 -- 2.50.1