File tree Expand file tree Collapse file tree 4 files changed +18
-6
lines changed Expand file tree Collapse file tree 4 files changed +18
-6
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 361de06ce8d842121d865e9dbc4a7b16ebda81f5
2
+ refs/heads/master: 5cc51e6cd68c1586e9f9e3c2b17cbc5978f4f25a
3
3
refs/heads/master-next: 203b3026584ecad859eb328b2e12490099409cd5
4
4
refs/tags/osx-passed: b6b74147ef8a386f532cf9357a1bde006e552c54
5
5
refs/tags/swift-2.2-SNAPSHOT-2015-12-01-a: 6bb18e013c2284f2b45f5f84f2df2887dc0f7dea
Original file line number Diff line number Diff line change @@ -537,10 +537,6 @@ class swift::ParseableInterfaceBuilder {
537
537
return ;
538
538
}
539
539
540
- // Optimize emitted modules. This has to happen after we parse arguments,
541
- // because parseSILOpts would override the current optimization mode.
542
- subInvocation.getSILOptions ().OptMode = OptimizationMode::ForSpeed;
543
-
544
540
// Build the .swiftmodule; this is a _very_ abridged version of the logic
545
541
// in performCompile in libFrontendTool, specialized, to just the one
546
542
// module-serialization task we're trying to do here.
Original file line number Diff line number Diff line change
1
+ // RUN: %empty-directory(%t)
2
+ // RUN: %target-swift-frontend -typecheck -emit-parseable-module-interface-path %t/Lib.swiftinterface %s -O
3
+ // RUN: %target-swift-frontend -build-module-from-parseable-interface %t/Lib.swiftinterface -Xllvm -sil-print-pass-name -o /dev/null 2>&1 | %FileCheck --check-prefix OPT %s
4
+
5
+ // RUN: %empty-directory(%t)
6
+ // RUN: %target-swift-frontend -typecheck -emit-parseable-module-interface-path %t/Lib.swiftinterface %s -Onone
7
+ // RUN: %target-swift-frontend -build-module-from-parseable-interface %t/Lib.swiftinterface -Xllvm -sil-print-pass-name -o /dev/null 2>&1 | %FileCheck --check-prefix UNOPT %s
8
+
9
+ // This is a bit of an implementation detail, but we want to make sure
10
+ // optimization passes don't run when compiling a .swiftinterface that was
11
+ // generated with -Onone.
12
+
13
+ // OPT: EagerSpecializer
14
+ // UNOPT-NOT: EagerSpecializer
15
+ public func f( ) { }
16
+
Original file line number Diff line number Diff line change @@ -30,6 +30,6 @@ func f(s : inout [Int]) {
30
30
// Test we can generate the interface of a module loaded via a .swiftinterface file correctly
31
31
32
32
// RUN: %empty-directory(%t.mod)
33
- // RUN: %swift -emit-module -o /dev/null -emit-parseable-module-interface-path %t.mod/swift_mod.swiftinterface %S/Inputs/swift_mod.swift -parse-as-library
33
+ // RUN: %swift -emit-module -o /dev/null -emit-parseable-module-interface-path %t.mod/swift_mod.swiftinterface -O %S/Inputs/swift_mod.swift -parse-as-library
34
34
// RUN: %sourcekitd-test -req=interface-gen -module swift_mod -- -I %t.mod -module-cache-path %t.mod/mcp > %t.response
35
35
// RUN: diff -u %s.from_swiftinterface.response %t.response
You can’t perform that action at this time.
0 commit comments