summaryrefslogtreecommitdiff
path: root/include/llvm/Type.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/llvm/Type.h')
-rw-r--r--include/llvm/Type.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h
index d3b2f1383f..185258d8ff 100644
--- a/include/llvm/Type.h
+++ b/include/llvm/Type.h
@@ -26,6 +26,7 @@ class raw_ostream;
class Module;
class LLVMContext;
class LLVMContextImpl;
+class StringRef;
template<class GraphType> struct GraphTraits;
/// The instances of the Type class are immutable: once they are created,
@@ -327,7 +328,9 @@ public:
unsigned getFunctionNumParams() const;
bool isFunctionVarArg() const;
- // TODO: StructType
+ StringRef getStructName() const;
+ unsigned getStructNumElements() const;
+ Type *getStructElementType(unsigned N) const;
Type *getSequentialElementType() const;