|
65 | 65 | #include "swift/Serialization/SerializationOptions.h" |
66 | 66 | #include "swift/Serialization/SerializedModuleLoader.h" |
67 | 67 | #include "swift/SILOptimizer/PassManager/Passes.h" |
| 68 | +#include "swift/SymbolGraphGen/SymbolGraphOptions.h" |
68 | 69 | #include "swift/Syntax/Serialization/SyntaxSerialization.h" |
69 | 70 | #include "swift/Syntax/SyntaxNodes.h" |
70 | 71 | #include "swift/TBDGen/TBDGen.h" |
@@ -1301,7 +1302,9 @@ static bool serializeSIB(SILModule *SM, const PrimarySpecificPaths &PSPs, |
1301 | 1302 | serializationOpts.SerializeAllSIL = true; |
1302 | 1303 | serializationOpts.IsSIB = true; |
1303 | 1304 |
|
1304 | | - serialize(MSF, serializationOpts, SM); |
| 1305 | + symbolgraphgen::SymbolGraphOptions symbolGraphOptions; |
| 1306 | + |
| 1307 | + serialize(MSF, serializationOpts, symbolGraphOptions, SM); |
1305 | 1308 | return Context.hadError(); |
1306 | 1309 | } |
1307 | 1310 |
|
@@ -1554,11 +1557,11 @@ static bool performCompileStepsPostSILGen(CompilerInstance &Instance, |
1554 | 1557 | fine_grained_dependencies::withReferenceDependencies( |
1555 | 1558 | Mod, *Instance.getDependencyTracker(), Mod->getModuleFilename(), |
1556 | 1559 | alsoEmitDotFile, [&](SourceFileDepGraph &&g) { |
1557 | | - serialize(MSF, serializationOpts, SM.get(), &g); |
| 1560 | + serialize(MSF, serializationOpts, Invocation.getSymbolGraphOptions(), SM.get(), &g); |
1558 | 1561 | return false; |
1559 | 1562 | }); |
1560 | 1563 | } else { |
1561 | | - serialize(MSF, serializationOpts, SM.get()); |
| 1564 | + serialize(MSF, serializationOpts, Invocation.getSymbolGraphOptions(), SM.get()); |
1562 | 1565 | } |
1563 | 1566 | }; |
1564 | 1567 |
|
|
0 commit comments