[PATCH] D56127: [CodeView] Extend the `MemberAttributes` interface with the `isStatic` method

Aleksandr Urakov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 28 04:30:17 PST 2018


aleksandr.urakov created this revision.
aleksandr.urakov added reviewers: zturner, rnk.
Herald added a subscriber: llvm-commits.

This patch extends the `MemberAttributes` interface with the `isStatic` method. It is needed for D56126 <https://reviews.llvm.org/D56126>.


Repository:
  rL LLVM

https://reviews.llvm.org/D56127

Files:
  include/llvm/DebugInfo/CodeView/TypeRecord.h


Index: include/llvm/DebugInfo/CodeView/TypeRecord.h
===================================================================
--- include/llvm/DebugInfo/CodeView/TypeRecord.h
+++ include/llvm/DebugInfo/CodeView/TypeRecord.h
@@ -95,6 +95,11 @@
     return MP == MethodKind::IntroducingVirtual ||
            MP == MethodKind::PureIntroducingVirtual;
   }
+
+  /// Does 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


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56127.179624.patch
Type: text/x-patch
Size: 548 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181228/a3a64ce3/attachment.bin>


More information about the llvm-commits mailing list