diff options
author | Duncan Sands <baldrick@free.fr> | 2009-10-07 07:35:19 +0000 |
---|---|---|
committer | Duncan Sands <baldrick@free.fr> | 2009-10-07 07:35:19 +0000 |
commit | 83ed76869e678848a8139631f00dcc4ff2bf095c (patch) | |
tree | 3ca5ec5285b7ad00706f0a19ea527473e459d332 /include/llvm | |
parent | ad29b756e00011251b2a1c97b833d2d0c9c30c26 (diff) | |
download | external_llvm-83ed76869e678848a8139631f00dcc4ff2bf095c.zip external_llvm-83ed76869e678848a8139631f00dcc4ff2bf095c.tar.gz external_llvm-83ed76869e678848a8139631f00dcc4ff2bf095c.tar.bz2 |
Make getPointerTo return a const PointerType* rather than
an unqualified PointerType* because it seems more correct.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@83454 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Type.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Type.h b/include/llvm/Type.h index b8b62a3..4a470af 100644 --- a/include/llvm/Type.h +++ b/include/llvm/Type.h @@ -430,7 +430,7 @@ public: /// getPointerTo - Return a pointer to the current type. This is equivalent /// to PointerType::get(Foo, AddrSpace). - PointerType *getPointerTo(unsigned AddrSpace = 0) const; + const PointerType *getPointerTo(unsigned AddrSpace = 0) const; private: /// isSizedDerivedType - Derived types like structures and arrays are sized |