aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/gold
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2020-12-09 13:31:03 -0800
committerFangrui Song <i@maskray.me>2020-12-09 13:31:03 -0800
commit68ff3b3376f4242307a36ac035a512ec4e256628 (patch)
tree89e004f1bd0149dd6d4972f164030421fa57562e /llvm/tools/gold
parenta5c89bb02195a97aa71a4033336d9864098c764f (diff)
downloadllvm-68ff3b3376f4242307a36ac035a512ec4e256628.zip
llvm-68ff3b3376f4242307a36ac035a512ec4e256628.tar.gz
llvm-68ff3b3376f4242307a36ac035a512ec4e256628.tar.bz2
[LLD][gold] Add -plugin-opt=no-new-pass-manager
-DENABLE_EXPERIMENTAL_NEW_PASS_MANAGER=on configured LLD and LLVMgold.so will use the new pass manager by default. Add an option to use the legacy pass manager. This will also be used by the Clang driver when -fno-new-pass-manager (D92915) / -fno-experimental-new-pass-manager is set. Reviewed By: aeubanks, tejohnson Differential Revision: https://reviews.llvm.org/D92916
Diffstat (limited to 'llvm/tools/gold')
-rw-r--r--llvm/tools/gold/gold-plugin.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp
index adb77ca..b479f89 100644
--- a/llvm/tools/gold/gold-plugin.cpp
+++ b/llvm/tools/gold/gold-plugin.cpp
@@ -288,6 +288,8 @@ 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") {
+ new_pass_manager = false;
} else if (opt == "debug-pass-manager") {
debug_pass_manager = true;
} else if (opt == "whole-program-visibility") {