mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[SIL] [Immediate] Promote linkage of SILFunctions defining requested symbols
Promotes the linkage of `SILFunction`s defining requested symbols, ensuring they are emitted during IRGen.
This commit is contained in:
@@ -864,6 +864,14 @@ void SILModule::installSILRemarkStreamer() {
|
||||
silRemarkStreamer = SILRemarkStreamer::create(*this);
|
||||
}
|
||||
|
||||
void SILModule::promoteLinkages() {
|
||||
for (auto &Fn : functions)
|
||||
if (Fn.isDefinition())
|
||||
Fn.setLinkage(SILLinkage::Public);
|
||||
|
||||
// TODO: Promote linkage of other SIL entities
|
||||
}
|
||||
|
||||
bool SILModule::isStdlibModule() const {
|
||||
return TheSwiftModule->isStdlibModule();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user