]> granicus.if.org Git - llvm/commitdiff
[CodeView] Extend the `MemberAttributes` interface with the `isStatic` method
authorAleksandr Urakov <aleksandr.urakov@jetbrains.com>
Fri, 28 Dec 2018 17:03:24 +0000 (17:03 +0000)
committerAleksandr Urakov <aleksandr.urakov@jetbrains.com>
Fri, 28 Dec 2018 17:03:24 +0000 (17:03 +0000)
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

index e7b5293dc51a419dfe9fee3f59fb9d8faa8dc153..7b4a30ee622d9802e1c2004068dd7552f711510d 100644 (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