From 1ee0ecf84a07693c3a517ba030fac8ac1f9f3fbc Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 24 Jan 2012 13:41:11 +0000 Subject: add more support for ConstantDataSequential git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148802 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Constants.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/llvm/Constants.h') 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 -- cgit v1.2.3