File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed
lib/SILOptimizer/PassManager Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -891,13 +891,6 @@ SILPassPipelinePlan::getIRGenPreparePassPipeline(const SILOptions &Options) {
891
891
// boundaries as required by the ABI.
892
892
P.addLoadableByAddress ();
893
893
894
- if (Options.EmbeddedSwift ) {
895
- // For embedded Swift: Remove all unspecialized functions. This is important
896
- // to avoid having debuginfo references to these functions that we don't
897
- // want to emit in IRGen.
898
- P.addLateDeadFunctionAndGlobalElimination ();
899
- }
900
-
901
894
if (Options.EnablePackMetadataStackPromotion ) {
902
895
// Insert marker instructions indicating where on-stack pack metadata
903
896
// deallocation must occur.
@@ -1051,6 +1044,13 @@ SILPassPipelinePlan::getOnonePassPipeline(const SILOptions &Options) {
1051
1044
// constant folded before any generic specialization.
1052
1045
P.addLateOnoneSimplification ();
1053
1046
1047
+ if (Options.EmbeddedSwift ) {
1048
+ // For embedded Swift: Remove all unspecialized functions. This is important
1049
+ // to avoid having debuginfo references to these functions that we don't
1050
+ // want to emit in IRGen.
1051
+ P.addLateDeadFunctionAndGlobalElimination ();
1052
+ }
1053
+
1054
1054
P.addCleanupDebugSteps ();
1055
1055
1056
1056
// Has only an effect if the -sil-based-debuginfo option is specified.
You can’t perform that action at this time.
0 commit comments