diff options
author | Chris Lattner <sabre@nondot.org> | 2012-01-24 13:41:11 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2012-01-24 13:41:11 +0000 |
commit | 1ee0ecf84a07693c3a517ba030fac8ac1f9f3fbc (patch) | |
tree | ce6fb6a15a49539b812ba49d0aec84154fbe1aae /include/llvm/Constants.h | |
parent | 53fa1ae51008d22ce5d2aa6fbf22c1afc4ec1401 (diff) | |
download | external_llvm-1ee0ecf84a07693c3a517ba030fac8ac1f9f3fbc.zip external_llvm-1ee0ecf84a07693c3a517ba030fac8ac1f9f3fbc.tar.gz external_llvm-1ee0ecf84a07693c3a517ba030fac8ac1f9f3fbc.tar.bz2 |
add more support for ConstantDataSequential
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148802 91177308-0d34-0410-b5e6-96231b3b80d8
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 510847f..3dc0ec3 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 |