Skip to content

Commit 7adcacd

Browse files
committed
Rename -plugin-opt=no-new-pass-manager to -plugin-opt=legacy-pass-manager
1 parent 4617cc6 commit 7adcacd

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

lld/ELF/Options.td

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ def: J<"plugin-opt=lto-partitions=">, Alias<lto_partitions>, HelpText<"Alias for
598598
def plugin_opt_mcpu_eq: J<"plugin-opt=mcpu=">;
599599
def: F<"plugin-opt=new-pass-manager">,
600600
Alias<lto_new_pass_manager>, HelpText<"Alias for --lto-new-pass-manager">;
601-
def: F<"plugin-opt=no-new-pass-manager">,
601+
def: F<"plugin-opt=legacy-pass-manager">,
602602
Alias<no_lto_new_pass_manager>, HelpText<"Alias for --no-lto-new-pass-manager">;
603603
def: F<"plugin-opt=cs-profile-generate">,
604604
Alias<lto_cs_profile_generate>, HelpText<"Alias for --lto-cs-profile-generate">;

lld/test/ELF/lto/new-pass-manager.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
; RUN: ld.lld --lto-new-pass-manager --plugin-opt=debug-pass-manager -o /dev/null %t.o 2>&1 | FileCheck %s
88
; RUN: ld.lld --lto-new-pass-manager --lto-debug-pass-manager -o /dev/null %t.o 2>&1 | FileCheck %s
99
; RUN: ld.lld --lto-new-pass-manager --no-lto-new-pass-manager --lto-debug-pass-manager -o /dev/null %t.o 2>&1 | FileCheck %s --check-prefix=LEGACY
10-
; RUN: ld.lld --plugin-opt=no-new-pass-manager --plugin-opt=debug-pass-manager -o /dev/null %t.o 2>&1 | FileCheck %s --check-prefix=LEGACY
10+
; RUN: ld.lld --plugin-opt=legacy-pass-manager --plugin-opt=debug-pass-manager -o /dev/null %t.o 2>&1 | FileCheck %s --check-prefix=LEGACY
1111

1212
; CHECK: Starting llvm::Module pass manager run
1313
; CHECK: Finished llvm::Module pass manager run

llvm/test/tools/gold/X86/new-pm.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
;; --plugin-opt=debug-pass-manager is a no-op for the legacy pass manager.
1414
; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext \
1515
; RUN: --plugin-opt=thinlto \
16-
; RUN: --plugin-opt=no-new-pass-manager --plugin-opt=debug-pass-manager \
16+
; RUN: --plugin-opt=legacy-pass-manager --plugin-opt=debug-pass-manager \
1717
; RUN: -o /dev/null %t.o 2>&1 | count 0
1818

1919
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"

llvm/tools/gold/gold-plugin.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ namespace options {
288288
cs_profile_path = std::string(opt);
289289
} else if (opt == "new-pass-manager") {
290290
new_pass_manager = true;
291-
} else if (opt == "no-new-pass-manager") {
291+
} else if (opt == "legacy-pass-manager") {
292292
new_pass_manager = false;
293293
} else if (opt == "debug-pass-manager") {
294294
debug_pass_manager = true;

0 commit comments

Comments
 (0)