Skip to content

Commit feaa2f7

Browse files
committed
Remove dead code
1 parent 3afe8eb commit feaa2f7

File tree

3 files changed

+1
-9
lines changed

3 files changed

+1
-9
lines changed

include/swift/RemoteInspection/TypeLowering.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,7 @@ class ArrayTypeInfo : public TypeInfo {
363363
int *extraInhabitantIndex) const override;
364364

365365
BitMask getSpareBits(TypeConverter &TC, bool &hasAddrOnly) const override;
366-
366+
const TypeInfo *getElementTypeInfo() const { return ElementTI; }
367367
static bool classof(const TypeInfo *TI) {
368368
return TI->getKind() == TypeInfoKind::Array;
369369
}

lib/IRGen/DebugTypeInfo.cpp

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -179,19 +179,12 @@ TypeDecl *DebugTypeInfo::getDecl() const {
179179
return nullptr;
180180
}
181181

182-
bool DebugTypeInfo::isForwardDecl() const {
183-
return isNull() || (!isa<TypeAliasType>(getType()));
184-
}
185-
186182
#if !defined(NDEBUG) || defined(LLVM_ENABLE_DUMP)
187183
LLVM_DUMP_METHOD void DebugTypeInfo::dump() const {
188184
llvm::errs() << "[";
189185
llvm::errs() << "Alignment " << Align.getValue() << "] ";
190186
if (auto *Type = getType())
191187
Type->dump(llvm::errs());
192-
193-
if (isForwardDecl())
194-
llvm::errs() << "forward-declared\n";
195188
}
196189
#endif
197190

lib/IRGen/DebugTypeInfo.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,6 @@ class DebugTypeInfo {
9797

9898
Alignment getAlignment() const { return Align; }
9999
bool isNull() const { return !Type; }
100-
bool isForwardDecl() const;
101100
bool isMetadataType() const { return IsMetadataType; }
102101
bool hasDefaultAlignment() const { return DefaultAlignment; }
103102
bool isFixedBuffer() const { return IsFixedBuffer; }

0 commit comments

Comments
 (0)