@@ -78,7 +78,7 @@ namespace swift {
78
78
// / compilation.
79
79
bool shouldVerify (const Decl *D, const ASTContext &Context);
80
80
81
- // / \brief Check that the source file is well formed, aborting and spewing
81
+ // / \brief Check that the source file is well- formed, aborting and spewing
82
82
// / errors if not.
83
83
// /
84
84
// / "Well-formed" here means following the invariants of the AST, not that the
@@ -232,28 +232,24 @@ namespace swift {
232
232
233
233
// / Turn the given Swift module into either LLVM IR or native code
234
234
// / and return the generated LLVM IR module.
235
- std::unique_ptr<llvm::Module> performIRGeneration (IRGenOptions &Opts,
236
- ModuleDecl *M,
237
- SILModule *SILMod,
238
- StringRef ModuleName,
239
- llvm::LLVMContext &LLVMContext);
235
+ std::unique_ptr<llvm::Module>
236
+ performIRGeneration (IRGenOptions &Opts, ModuleDecl *M, SILModule *SILMod,
237
+ StringRef ModuleName, llvm::LLVMContext &LLVMContext);
240
238
241
239
// / Turn the given Swift module into either LLVM IR or native code
242
240
// / and return the generated LLVM IR module.
243
- std::unique_ptr<llvm::Module> performIRGeneration (IRGenOptions &Opts,
244
- SourceFile &SF,
245
- SILModule *SILMod,
246
- StringRef ModuleName,
247
- llvm::LLVMContext &LLVMContext,
248
- unsigned StartElem = 0 );
241
+ std::unique_ptr<llvm::Module>
242
+ performIRGeneration (IRGenOptions &Opts, SourceFile &SF, SILModule *SILMod,
243
+ StringRef ModuleName, llvm::LLVMContext &LLVMContext,
244
+ unsigned StartElem = 0 );
249
245
250
246
// / Given an already created LLVM module, construct a pass pipeline and run
251
247
// / the Swift LLVM Pipeline upon it. This does not cause the module to be
252
- // / printed. Only optimized.
248
+ // / printed, only to be optimized.
253
249
void performLLVMOptimizations (IRGenOptions &Opts, llvm::Module *Module,
254
250
llvm::TargetMachine *TargetMachine);
255
251
256
- // / Wrap a serialized module inside a swift ast section in an object file.
252
+ // / Wrap a serialized module inside a swift AST section in an object file.
257
253
void createSwiftModuleObjectFile (SILModule &SILMod, StringRef Buffer,
258
254
StringRef OutputPath);
259
255
@@ -284,4 +280,4 @@ namespace swift {
284
280
285
281
} // end namespace swift
286
282
287
- #endif
283
+ #endif // SWIFT_SUBSYSTEMS_H
0 commit comments