Rename -plugin-opt=no-new-pass-manager to -plugin-opt=legacy-pass-manager

This commit is contained in:
Fangrui Song 2020-12-09 16:43:30 -08:00
parent 4617cc68f6
commit 7adcacda06
4 changed files with 4 additions and 4 deletions

View File

@ -598,7 +598,7 @@ def: J<"plugin-opt=lto-partitions=">, Alias<lto_partitions>, HelpText<"Alias for
def plugin_opt_mcpu_eq: J<"plugin-opt=mcpu=">;
def: F<"plugin-opt=new-pass-manager">,
Alias<lto_new_pass_manager>, HelpText<"Alias for --lto-new-pass-manager">;
def: F<"plugin-opt=no-new-pass-manager">,
def: F<"plugin-opt=legacy-pass-manager">,
Alias<no_lto_new_pass_manager>, HelpText<"Alias for --no-lto-new-pass-manager">;
def: F<"plugin-opt=cs-profile-generate">,
Alias<lto_cs_profile_generate>, HelpText<"Alias for --lto-cs-profile-generate">;

View File

@ -7,7 +7,7 @@
; RUN: ld.lld --lto-new-pass-manager --plugin-opt=debug-pass-manager -o /dev/null %t.o 2>&1 | FileCheck %s
; RUN: ld.lld --lto-new-pass-manager --lto-debug-pass-manager -o /dev/null %t.o 2>&1 | FileCheck %s
; 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
; 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
; 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
; CHECK: Starting llvm::Module pass manager run
; CHECK: Finished llvm::Module pass manager run

View File

@ -13,7 +13,7 @@
;; --plugin-opt=debug-pass-manager is a no-op for the legacy pass manager.
; RUN: %gold -m elf_x86_64 -plugin %llvmshlibdir/LLVMgold%shlibext \
; RUN: --plugin-opt=thinlto \
; RUN: --plugin-opt=no-new-pass-manager --plugin-opt=debug-pass-manager \
; RUN: --plugin-opt=legacy-pass-manager --plugin-opt=debug-pass-manager \
; RUN: -o /dev/null %t.o 2>&1 | count 0
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"

View File

@ -288,7 +288,7 @@ namespace options {
cs_profile_path = std::string(opt);
} else if (opt == "new-pass-manager") {
new_pass_manager = true;
} else if (opt == "no-new-pass-manager") {
} else if (opt == "legacy-pass-manager") {
new_pass_manager = false;
} else if (opt == "debug-pass-manager") {
debug_pass_manager = true;