aboutsummaryrefslogtreecommitdiff
path: root/llvm
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2020-12-09 16:43:30 -0800
committerFangrui Song <i@maskray.me>2020-12-09 16:43:30 -0800
commit7adcacda0686b6f73555fbae0beef6b9178fced0 (patch)
tree6337e91e74ad0874dcf8a3a9fa1cacf5ee23f8eb /llvm
parent4617cc68f64a4aea04580cc4df5497a1f24ebfdb (diff)
downloadllvm-7adcacda0686b6f73555fbae0beef6b9178fced0.zip
llvm-7adcacda0686b6f73555fbae0beef6b9178fced0.tar.gz
llvm-7adcacda0686b6f73555fbae0beef6b9178fced0.tar.bz2
Rename -plugin-opt=no-new-pass-manager to -plugin-opt=legacy-pass-manager
Diffstat (limited to 'llvm')
-rw-r--r--llvm/test/tools/gold/X86/new-pm.ll2
-rw-r--r--llvm/tools/gold/gold-plugin.cpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/test/tools/gold/X86/new-pm.ll b/llvm/test/tools/gold/X86/new-pm.ll
index 05c7883..8554ca8 100644
--- a/llvm/test/tools/gold/X86/new-pm.ll
+++ b/llvm/test/tools/gold/X86/new-pm.ll
@@ -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"
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp
index b479f89..b218279 100644
--- a/llvm/tools/gold/gold-plugin.cpp
+++ b/llvm/tools/gold/gold-plugin.cpp
@@ -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;