summaryrefslogtreecommitdiff
path: root/include/llvm/Constants.h
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2012-01-24 13:41:11 +0000
committerChris Lattner <sabre@nondot.org>2012-01-24 13:41:11 +0000
commit1ee0ecf84a07693c3a517ba030fac8ac1f9f3fbc (patch)
treece6fb6a15a49539b812ba49d0aec84154fbe1aae /include/llvm/Constants.h
parent53fa1ae51008d22ce5d2aa6fbf22c1afc4ec1401 (diff)
downloadllvm-1ee0ecf84a07693c3a517ba030fac8ac1f9f3fbc.tar.gz
llvm-1ee0ecf84a07693c3a517ba030fac8ac1f9f3fbc.tar.bz2
llvm-1ee0ecf84a07693c3a517ba030fac8ac1f9f3fbc.tar.xz
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.h3
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