SIL: Remove linkage parameter from SILModule::createWitnessTableDeclaration()

All callers were doing the same thing here, so move it inside the
function. Also, change getRootNormalConformance(), which is deprecated,
to getRootConformance().
This commit is contained in:
Slava Pestov
2018-12-20 15:17:34 -05:00
parent ff47c303ad
commit 39c93b9f85
4 changed files with 7 additions and 11 deletions

View File

@@ -217,9 +217,7 @@ void SILLinkerVisitor::visitProtocolConformance(
// If we don't find any witness table for the conformance, bail and return
// false.
if (!WT) {
Mod.createWitnessTableDeclaration(
C, getLinkageForProtocolConformance(
C->getRootNormalConformance(), NotForDefinition));
Mod.createWitnessTableDeclaration(C);
// Adding the declaration may allow us to now deserialize the body.
// Force the body if we must deserialize this witness table.