From 45bb5c5333fba7e9909cca178d785bf2c1d2b0c1 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Tue, 24 Jan 2012 04:43:41 +0000 Subject: implement the ConstantDataSequential accessor methods. No need for 'getOperand' :) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148778 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Constants.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/llvm/Constants.h') 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(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; }; //===----------------------------------------------------------------------===// -- cgit v1.2.3