File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
lib/SILOptimizer/UtilityPasses Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -333,6 +333,11 @@ function(_compile_swift_files
333
333
"-emit-module-interface-path" "${interface_file} " )
334
334
endif ()
335
335
336
+ if (NOT SWIFTFILE_IS_STDLIB_CORE )
337
+ list (APPEND swift_module_flags
338
+ "-Xfrontend" "-experimental-skip-non-inlinable-function-bodies" )
339
+ endif ()
340
+
336
341
# If we have extra regexp flags, check if we match any of the regexps. If so
337
342
# add the relevant flags to our swift_flags.
338
343
if (SWIFT_EXPERIMENTAL_EXTRA_REGEXP_FLAGS OR SWIFT_EXPERIMENTAL_EXTRA_NEGATIVE_REGEXP_FLAGS )
Original file line number Diff line number Diff line change 11
11
// ===----------------------------------------------------------------------===//
12
12
13
13
#include " swift/Basic/LLVM.h"
14
+ #include " swift/AST/Module.h"
14
15
#include " swift/SIL/SILFunction.h"
15
16
#include " swift/SIL/SILInstruction.h"
16
17
#include " swift/SIL/SILModule.h"
@@ -83,7 +84,7 @@ class NonInlinableFunctionSkippingChecker : public SILModuleTransform {
83
84
return ;
84
85
85
86
// Skip this verification for SwiftOnoneSupport
86
- if (getModule ()->isOptimizedOnoneSupportModule ())
87
+ if (getModule ()->getSwiftModule ()-> isOnoneSupportModule ())
87
88
return ;
88
89
89
90
for (auto &F : *getModule ()) {
You can’t perform that action at this time.
0 commit comments