We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent be7c634 commit 399dbc9Copy full SHA for 399dbc9
lib/IRGen/IRGenModule.cpp
@@ -1865,6 +1865,11 @@ static llvm::GlobalObject *createForceImportThunk(IRGenModule &IGM) {
1865
}
1866
1867
void IRGenModule::emitAutolinkInfo() {
1868
+ if (getSILModule().getOptions().StopOptimizationAfterSerialization) {
1869
+ // We're asked to emit an empty IR module
1870
+ return;
1871
+ }
1872
+
1873
auto Autolink =
1874
AutolinkKind::create(TargetInfo, Triple, IRGen.Opts.LLVMLTOKind);
1875
0 commit comments