Mark Type::getPointerTo as const. Unfortunately, this requires a const_cast inside...
[oota-llvm.git] / include / llvm / IR / Type.h
index bbee3f93741ece1bc95548812d41c717d11372c4..93a8a2f186531633e13811900c615265eb95098d 100644 (file)
@@ -416,7 +416,7 @@ public:
 
   /// getPointerTo - Return a pointer to the current type.  This is equivalent
   /// to PointerType::get(Foo, AddrSpace).
-  PointerType *getPointerTo(unsigned AddrSpace = 0);
+  PointerType *getPointerTo(unsigned AddrSpace = 0) const;
 
 private:
   /// isSizedDerivedType - Derived types like structures and arrays are sized