Skip to content

Commit 6ca6780

Browse files
committed
Clean up after transition into opaque pointers. NFC (#102631)
LegacyPointerTypes is not used any longer and can be removed from the LLVM context. Also remove a copy-pasted code comment in TypedPointerType that doesn't make sense (since there is no special case for address space zero in the TypedPointerType::get implementation).
1 parent baabcb2 commit 6ca6780

File tree

2 files changed

+0
-2
lines changed

2 files changed

+0
-2
lines changed

llvm/lib/IR/LLVMContextImpl.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1608,7 +1608,6 @@ class LLVMContextImpl {
16081608
DenseMap<std::pair<Type *, ElementCount>, VectorType *> VectorTypes;
16091609
PointerType *AS0PointerType = nullptr; // AddrSpace = 0
16101610
DenseMap<unsigned, PointerType *> PointerTypes;
1611-
DenseMap<std::pair<Type *, unsigned>, PointerType *> LegacyPointerTypes;
16121611
DenseMap<std::pair<Type *, unsigned>, TypedPointerType *> ASTypedPointerTypes;
16131612

16141613
/// ValueHandles - This map keeps track of all of the value handles that are

llvm/lib/IR/TypedPointerType.cpp

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ TypedPointerType *TypedPointerType::get(Type *EltTy, unsigned AddressSpace) {
2020

2121
LLVMContextImpl *CImpl = EltTy->getContext().pImpl;
2222

23-
// Since AddressSpace #0 is the common case, we special case it.
2423
TypedPointerType *&Entry =
2524
CImpl->ASTypedPointerTypes[std::make_pair(EltTy, AddressSpace)];
2625

0 commit comments

Comments
 (0)