mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
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:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user