Mark CompositeType::getTypeAtIndex as const. NFC
[oota-llvm.git] / include / llvm / IR / DerivedTypes.h
index 96962da599f65feecedd3c6d3698b9221124b85a..d28847e4ff384a7add9c08c9e648470fbac18c2a 100644 (file)
@@ -153,8 +153,8 @@ public:
   /// getTypeAtIndex - Given an index value into the type, return the type of
   /// the element.
   ///
-  Type *getTypeAtIndex(const Value *V);
-  Type *getTypeAtIndex(unsigned Idx);
+  Type *getTypeAtIndex(const Value *V) const;
+  Type *getTypeAtIndex(unsigned Idx) const;
   bool indexValid(const Value *V) const;
   bool indexValid(unsigned Idx) const;