From 36ed3024edf6fb296e490112b2ea6a09289cdb50 Mon Sep 17 00:00:00 2001 From: Bill Wendling Date: Tue, 4 Dec 2012 06:12:44 +0000 Subject: [PATCH] Add a 'getCount' method to get the number of elements in the subrange. llvm-svn: 169215 --- llvm/include/llvm/DebugInfo.h | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/include/llvm/DebugInfo.h b/llvm/include/llvm/DebugInfo.h index ee0505b2f532..70b1ef37ce06 100644 --- a/llvm/include/llvm/DebugInfo.h +++ b/llvm/include/llvm/DebugInfo.h @@ -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.