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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user