1919
2020namespace llvm {
2121
22+ // / A parser for the latest stackmap format. At the moment, latest=V2.
2223template <support::endianness Endianness>
23- class StackMapV2Parser {
24+ class StackMapParser {
2425public:
2526 template <typename AccessorT>
2627 class AccessorIterator {
@@ -49,7 +50,7 @@ class StackMapV2Parser {
4950
5051 // / Accessor for function records.
5152 class FunctionAccessor {
52- friend class StackMapV2Parser ;
53+ friend class StackMapParser ;
5354
5455 public:
5556 // / Get the function address.
@@ -81,7 +82,7 @@ class StackMapV2Parser {
8182
8283 // / Accessor for constants.
8384 class ConstantAccessor {
84- friend class StackMapV2Parser ;
85+ friend class StackMapParser ;
8586
8687 public:
8788 // / Return the value of this constant.
@@ -105,7 +106,7 @@ class StackMapV2Parser {
105106
106107 // / Accessor for location records.
107108 class LocationAccessor {
108- friend class StackMapV2Parser ;
109+ friend class StackMapParser ;
109110 friend class RecordAccessor ;
110111
111112 public:
@@ -164,7 +165,7 @@ class StackMapV2Parser {
164165
165166 // / Accessor for stackmap live-out fields.
166167 class LiveOutAccessor {
167- friend class StackMapV2Parser ;
168+ friend class StackMapParser ;
168169 friend class RecordAccessor ;
169170
170171 public:
@@ -195,7 +196,7 @@ class StackMapV2Parser {
195196
196197 // / Accessor for stackmap records.
197198 class RecordAccessor {
198- friend class StackMapV2Parser ;
199+ friend class StackMapParser ;
199200
200201 public:
201202 using location_iterator = AccessorIterator<LocationAccessor>;
@@ -299,12 +300,12 @@ class StackMapV2Parser {
299300
300301 // / Construct a parser for a version-2 stackmap. StackMap data will be read
301302 // / from the given array.
302- StackMapV2Parser (ArrayRef<uint8_t > StackMapSection)
303+ StackMapParser (ArrayRef<uint8_t > StackMapSection)
303304 : StackMapSection(StackMapSection) {
304305 ConstantsListOffset = FunctionListOffset + getNumFunctions () * FunctionSize;
305306
306307 assert (StackMapSection[0 ] == 2 &&
307- " StackMapV2Parser can only parse version 2 stackmaps" );
308+ " StackMapParser can only parse version 2 stackmaps" );
308309
309310 unsigned CurrentRecordOffset =
310311 ConstantsListOffset + getNumConstants () * ConstantSize;
0 commit comments