summaryrefslogtreecommitdiff
path: root/include/llvm/Constants.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Constants.h')
-rw-r--r--include/llvm/Constants.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/llvm/Constants.h b/include/llvm/Constants.h
index 022ac2d393..1fc3308494 100644
--- a/include/llvm/Constants.h
+++ b/include/llvm/Constants.h
@@ -597,6 +597,10 @@ public:
inline SequentialType *getType() const {
return reinterpret_cast<SequentialType*>(Value::getType());
}
+
+ /// getElementType - Return the element type of the array/vector.
+ Type *getElementType() const;
+
/// Methods for support type inquiry through isa, cast, and dyn_cast:
///
@@ -605,6 +609,9 @@ public:
return V->getValueID() == ConstantDataArrayVal ||
V->getValueID() == ConstantDataVectorVal;
}
+private:
+ uint64_t getElementByteSize() const;
+ const char *getElementPointer(unsigned Elt) const;
};
//===----------------------------------------------------------------------===//