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

@@ -511,9 +511,8 @@ void SILModule::eraseFunction(SILFunction *F) {
// This opens dead-function-removal opportunities for called functions.
// (References are not needed anymore.)
F->dropAllReferences();
F->clear();
F->dropDynamicallyReplacedFunction();
F->getBlocks().clear();
// Drop references for any _specialize(target:) functions.
F->clearSpecializeAttrs();
}