diff options
Diffstat (limited to 'include/llvm/Constants.h')
-rw-r--r-- | include/llvm/Constants.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h index 510847ff23..3dc0ec3de0 100644 --- a/include/llvm/Constants.h +++ b/include/llvm/Constants.h @@ -623,6 +623,9 @@ public: /// getElementType - Return the element type of the array/vector. Type *getElementType() const; + + /// getNumElements - Return the number of elements in the array or vector. + unsigned getNumElements() const; /// getElementByteSize - Return the size (in bytes) of each element in the /// array/vector. The size of the elements is known to be a multiple of one |