[PATCH] D59167: [StackMaps] Add explicit location size accessor to the stackmap parser

Philip Reames via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 12 18:50:01 PDT 2019


This revision was automatically updated to reflect the committed changes.
Closed by commit rL358319: [StackMaps] Add explicit location size accessor to the stackmap parser (authored by reames, committed by ).

Changed prior to commit:
  https://reviews.llvm.org/D59167?vs=192796&id=194992#toc

Repository:
  rL LLVM

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D59167/new/

https://reviews.llvm.org/D59167

Files:
  llvm/trunk/include/llvm/Object/StackMapParser.h


Index: llvm/trunk/include/llvm/Object/StackMapParser.h
===================================================================
--- llvm/trunk/include/llvm/Object/StackMapParser.h
+++ llvm/trunk/include/llvm/Object/StackMapParser.h
@@ -114,6 +114,12 @@
       return LocationKind(P[KindOffset]);
     }
 
+    /// Get the Size for this location.
+    uint8_t getSize() const {
+        return read<uint8_t>(P + SizeOffset);
+
+    }
+
     /// Get the Dwarf register number for this location.
     uint16_t getDwarfRegNum() const {
       return read<uint16_t>(P + DwarfRegNumOffset);
@@ -148,7 +154,8 @@
     }
 
     static const int KindOffset = 0;
-    static const int DwarfRegNumOffset = KindOffset + sizeof(uint16_t);
+    static const int SizeOffset = KindOffset + sizeof(uint8_t);
+    static const int DwarfRegNumOffset = SizeOffset + sizeof(uint8_t);
     static const int SmallConstantOffset = DwarfRegNumOffset + sizeof(uint16_t);
     static const int LocationAccessorSize = sizeof(uint64_t);
 


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D59167.194992.patch
Type: text/x-patch
Size: 1004 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190413/66177f04/attachment.bin>


More information about the llvm-commits mailing list