Skip to content

Commit d255cd6

Browse files
committed
Cosmetics (NFC)
- Comments minor fixes - Align functions' parameters to same column
1 parent 14197f6 commit d255cd6

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

include/swift/Subsystems.h

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ namespace swift {
7878
/// compilation.
7979
bool shouldVerify(const Decl *D, const ASTContext &Context);
8080

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
8282
/// errors if not.
8383
///
8484
/// "Well-formed" here means following the invariants of the AST, not that the
@@ -232,28 +232,24 @@ namespace swift {
232232

233233
/// Turn the given Swift module into either LLVM IR or native code
234234
/// 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);
240238

241239
/// Turn the given Swift module into either LLVM IR or native code
242240
/// 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);
249245

250246
/// Given an already created LLVM module, construct a pass pipeline and run
251247
/// the Swift LLVM Pipeline upon it. This does not cause the module to be
252-
/// printed. Only optimized.
248+
/// printed, only to be optimized.
253249
void performLLVMOptimizations(IRGenOptions &Opts, llvm::Module *Module,
254250
llvm::TargetMachine *TargetMachine);
255251

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.
257253
void createSwiftModuleObjectFile(SILModule &SILMod, StringRef Buffer,
258254
StringRef OutputPath);
259255

@@ -284,4 +280,4 @@ namespace swift {
284280

285281
} // end namespace swift
286282

287-
#endif
283+
#endif // SWIFT_SUBSYSTEMS_H

0 commit comments

Comments
 (0)