Skip to content

Commit 93c0203

Browse files
authored
Merge pull request #19256 from compnerd/sil-module-backwards
Frontend: include the SILModule header
2 parents 4a9b676 + e46529e commit 93c0203

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

include/swift/Frontend/Frontend.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -444,9 +444,7 @@ class CompilerInstance {
444444
return TheSILModule.get();
445445
}
446446

447-
std::unique_ptr<SILModule> takeSILModule() {
448-
return std::move(TheSILModule);
449-
}
447+
std::unique_ptr<SILModule> takeSILModule();
450448

451449
bool hasSILModule() {
452450
return static_cast<bool>(TheSILModule);

lib/Frontend/Frontend.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -430,6 +430,10 @@ CompilerInstance::openModuleDoc(const InputFile &input) {
430430
return None;
431431
}
432432

433+
std::unique_ptr<SILModule> CompilerInstance::takeSILModule() {
434+
return std::move(TheSILModule);
435+
}
436+
433437
ModuleDecl *CompilerInstance::getMainModule() {
434438
if (!MainModule) {
435439
Identifier ID = Context->getIdentifier(Invocation.getModuleName());

0 commit comments

Comments
 (0)