[lld] [lld][MachO] rename to bp-* options for SectionOrderer (PR #118594)

Ellis Hoag via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 6 10:01:09 PST 2024


================
@@ -353,14 +353,16 @@ void macho::PriorityBuilder::parseOrderFile(StringRef path) {
 DenseMap<const InputSection *, size_t>
 macho::PriorityBuilder::buildInputSectionPriorities() {
   DenseMap<const InputSection *, size_t> sectionPriorities;
-  if (!config->irpgoProfileSortProfilePath.empty() ||
-      config->functionOrderForCompression || config->dataOrderForCompression) {
+  if (!config->irpgoProfilePath.empty() ||
----------------
ellishg wrote:

We should check this new `-bp-section-sort=function` flag rather than `-irpgo-profile-path`
```suggestion
  if (!config->bpStartupFunctionSort ||
```

https://github.com/llvm/llvm-project/pull/118594


More information about the llvm-commits mailing list