Add a 'getCount' method to get the number of elements in the subrange.
authorBill Wendling <isanbard@gmail.com>
Tue, 4 Dec 2012 06:12:44 +0000 (06:12 +0000)
committerBill Wendling <isanbard@gmail.com>
Tue, 4 Dec 2012 06:12:44 +0000 (06:12 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@169215 91177308-0d34-0410-b5e6-96231b3b80d8

include/llvm/DebugInfo.h

index ee0505b2f5323dc155b3e6434fb59c4a71237955..70b1ef37ce064d67f010d0123846883dc0dbde80 100644 (file)
@@ -144,6 +144,7 @@ namespace llvm {
 
     uint64_t getLo() const { return getUInt64Field(1); }
     uint64_t getHi() const { return getUInt64Field(2); }
+    int64_t  getCount() const { return getInt64Field(3); }
   };
 
   /// DIArray - This descriptor holds an array of descriptors.