Skip to content

Commit 2e7bd22

Browse files
authored
[NFC] Fix comments in PassBuilder functions (#89513)
The original comments mention `addPreLinkLTODefaultPipeline`, but I could not find any functions with this name, even in https://reviews.llvm.org/D33540 (8b3be4e) where this comment was added. I assume they meant to refer to `buildThinLTOPreLinkDefaultPipeline` and `buildLTOPreLinkDefaultPipeline` and so this patch uses them.
1 parent e4f7c52 commit 2e7bd22

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/include/llvm/Passes/PassBuilder.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,12 @@ class PassBuilder {
264264
/// the LTO run.
265265
ModulePassManager buildThinLTOPreLinkDefaultPipeline(OptimizationLevel Level);
266266

267-
/// Build an ThinLTO default optimization pipeline to a pass manager.
267+
/// Build a ThinLTO default optimization pipeline to a pass manager.
268268
///
269269
/// This provides a good default optimization pipeline for link-time
270270
/// optimization and code generation. It is particularly tuned to fit well
271271
/// when IR coming into the LTO phase was first run through \c
272-
/// addPreLinkLTODefaultPipeline, and the two coordinate closely.
272+
/// buildThinLTOPreLinkDefaultPipeline, and the two coordinate closely.
273273
ModulePassManager
274274
buildThinLTODefaultPipeline(OptimizationLevel Level,
275275
const ModuleSummaryIndex *ImportSummary);
@@ -288,7 +288,7 @@ class PassBuilder {
288288
/// This provides a good default optimization pipeline for link-time
289289
/// optimization and code generation. It is particularly tuned to fit well
290290
/// when IR coming into the LTO phase was first run through \c
291-
/// addPreLinkLTODefaultPipeline, and the two coordinate closely.
291+
/// buildLTOPreLinkDefaultPipeline, and the two coordinate closely.
292292
ModulePassManager buildLTODefaultPipeline(OptimizationLevel Level,
293293
ModuleSummaryIndex *ExportSummary);
294294

0 commit comments

Comments
 (0)