Skip to content

Commit 0a529c4

Browse files
authored
Merge pull request #78773 from compnerd/effective-dce
IRGen: remove unused method (NFCI)
2 parents 78ec9a7 + 6df1c54 commit 0a529c4

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

lib/IRGen/GenValueWitness.cpp

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1494,16 +1494,6 @@ getAddrOfKnownValueWitnessTable(IRGenModule &IGM, CanType type,
14941494
return {};
14951495
}
14961496

1497-
llvm::Constant *
1498-
IRGenModule::getAddrOfEffectiveValueWitnessTable(CanType concreteType,
1499-
ConstantInit init) {
1500-
if (auto known =
1501-
getAddrOfKnownValueWitnessTable(*this, concreteType, false)) {
1502-
return known.getValue();
1503-
}
1504-
return getAddrOfValueWitnessTable(concreteType);
1505-
}
1506-
15071497
/// Emit a value-witness table for the given type.
15081498
ConstantReference irgen::emitValueWitnessTable(IRGenModule &IGM,
15091499
CanType abstractType,

lib/IRGen/IRGenModule.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1676,9 +1676,6 @@ private: \
16761676
ForDefinition_t forDefinition);
16771677
llvm::Constant *getAddrOfValueWitnessTable(CanType concreteType,
16781678
ConstantInit init = ConstantInit());
1679-
llvm::Constant *
1680-
getAddrOfEffectiveValueWitnessTable(CanType concreteType,
1681-
ConstantInit init = ConstantInit());
16821679
std::optional<llvm::Function *>
16831680
getAddrOfIVarInitDestroy(ClassDecl *cd, bool isDestroyer, bool isForeign,
16841681
ForDefinition_t forDefinition);

0 commit comments

Comments
 (0)