|
20 | 20 |
|
21 | 21 | namespace swift { |
22 | 22 | struct SupplementaryOutputPaths { |
23 | | - /// The path to which we should emit an Objective-C header for the module. |
| 23 | + /// The path to which we should emit a header file that exposes the Swift |
| 24 | + /// declarations to C, Objective-C and C++ clients for the module. |
24 | 25 | /// |
25 | 26 | /// Currently only makes sense when the compiler has whole module knowledge. |
26 | 27 | /// The modes for which it makes sense incuide both WMO and the "merge |
27 | 28 | /// modules" job that happens after the normal compilation jobs. That's where |
28 | 29 | /// the header is emitted in single-file mode, since it needs whole-module |
29 | 30 | /// information. |
30 | 31 | /// |
31 | | - /// \sa swift::printAsObjC |
32 | | - std::string ObjCHeaderOutputPath; |
33 | | - |
34 | | - /// The path to which we should emit a C++ header for the module. |
35 | | - /// |
36 | | - /// Currently only makes sense when the compiler has whole module knowledge. |
37 | | - /// The modes for which it makes sense include both WMO and the "merge |
38 | | - /// modules" job that happens after the normal compilation jobs. That's where |
39 | | - /// the header is emitted in single-file mode, since it needs whole-module |
40 | | - /// information. |
41 | | - /// |
42 | | - /// \sa swift::printAsCXX |
43 | | - std::string CxxHeaderOutputPath; |
| 32 | + /// \sa swift::printAsClangHeader |
| 33 | + std::string ClangHeaderOutputPath; |
44 | 34 |
|
45 | 35 | /// The path to which we should emit a serialized module. |
46 | 36 | /// It is valid whenever there are any inputs. |
@@ -170,10 +160,8 @@ struct SupplementaryOutputPaths { |
170 | 160 |
|
171 | 161 | /// Apply a given function for each existing (non-empty string) supplementary output |
172 | 162 | void forEachSetOutput(llvm::function_ref<void(const std::string&)> fn) const { |
173 | | - if (!ObjCHeaderOutputPath.empty()) |
174 | | - fn(ObjCHeaderOutputPath); |
175 | | - if (!CxxHeaderOutputPath.empty()) |
176 | | - fn(CxxHeaderOutputPath); |
| 163 | + if (!ClangHeaderOutputPath.empty()) |
| 164 | + fn(ClangHeaderOutputPath); |
177 | 165 | if (!ModuleOutputPath.empty()) |
178 | 166 | fn(ModuleOutputPath); |
179 | 167 | if (!ModuleSourceInfoOutputPath.empty()) |
@@ -209,9 +197,8 @@ struct SupplementaryOutputPaths { |
209 | 197 | } |
210 | 198 |
|
211 | 199 | bool empty() const { |
212 | | - return ObjCHeaderOutputPath.empty() && CxxHeaderOutputPath.empty() && |
213 | | - ModuleOutputPath.empty() && ModuleDocOutputPath.empty() && |
214 | | - DependenciesFilePath.empty() && |
| 200 | + return ClangHeaderOutputPath.empty() && ModuleOutputPath.empty() && |
| 201 | + ModuleDocOutputPath.empty() && DependenciesFilePath.empty() && |
215 | 202 | ReferenceDependenciesFilePath.empty() && |
216 | 203 | SerializedDiagnosticsPath.empty() && LoadedModuleTracePath.empty() && |
217 | 204 | TBDPath.empty() && ModuleInterfaceOutputPath.empty() && |
|
0 commit comments