SIL: move all the block-list modifying APIs to SILFunction.

... and remove SILFunction::getBlocks().

It's just a cleanup, NFC.
This commit is contained in:
Erik Eckstein
2021-01-14 17:35:31 +01:00
parent 7fada0aa27
commit b7351780f7
24 changed files with 97 additions and 104 deletions

View File

@@ -206,7 +206,7 @@ void removeUnwantedFunctions(SILModule *M, ArrayRef<std::string> MangledNames,
// Now mark all of these functions as public and remove their bodies.
for (auto &F : DeadFunctions) {
F->setLinkage(SILLinkage::PublicExternal);
F->getBlocks().clear();
F->clear();
}
// Remove dead functions.