Skip to content

Commit ec8873e

Browse files
committed
[__swift5_entry] Do not emit segment for repl.
1 parent 43a2929 commit ec8873e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/IRGen/GenDecl.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1781,6 +1781,9 @@ static std::string getEntryPointSection(IRGenModule &IGM) {
17811781
}
17821782

17831783
void IRGenerator::emitEntryPointInfo() {
1784+
if (Opts.IntegratedREPL) {
1785+
return;
1786+
}
17841787
SILFunction *entrypoint = nullptr;
17851788
if (!(entrypoint = SIL.lookUpFunction(SWIFT_ENTRY_POINT_FUNCTION))) {
17861789
return;

0 commit comments

Comments
 (0)