[OpaquePtrs] Deprecate PointerType::getElementType()
authorNikita Popov <npopov@redhat.com>
Tue, 25 Jan 2022 08:57:26 +0000 (09:57 +0100)
committerNikita Popov <npopov@redhat.com>
Tue, 25 Jan 2022 09:13:53 +0000 (10:13 +0100)
commit184591aeeb5a531f2315c3d7cddcd199c87ecb2c
treec635bc5645f995624f3fb149bb854bbaf2751ab9
parent22487280dcea8261996385b852ca4470b8e4846b
[OpaquePtrs] Deprecate PointerType::getElementType()

This deprecates PointerType::getElementType() in favor of
Type::getPointerElementType(). The motivation is to make it more
apparent when code accesses the pointer element type, because
getElementType() may also also refer to at least
ArrayType::getElementType() and VectorType::getElementType().

Differential Revision: https://reviews.llvm.org/D117885
llvm/include/llvm/IR/DerivedTypes.h