mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This centralizes the entrypoints for creating SILFunctions. Creating a SILFunction is intimately tied to a specific SILModule, so it makes sense to either centralize the creation on SILModule or SILFunction. Since a SILFunction is in a SILModule, it seems more natural to put it on SILModule. I purposely created a new override on SILMod that exactly matches the signature of SILFunction::create so that beyond the extra indirection through SILMod, this change should be NFC. We can refactor individual cases in later iterations of refactoring.
25 KiB
25 KiB