aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/gold
diff options
context:
space:
mode:
authorNikita Popov <npopov@redhat.com>2022-04-05 15:05:46 +0200
committerNikita Popov <npopov@redhat.com>2022-04-06 09:52:21 +0200
commited4e6e03981a37d54c4ac635b2bdb2c2fe8fec92 (patch)
treefea672749e6b62c41a16a3c21fd134b83f21b9fe /llvm/tools/gold
parentb0e2ffe151c34cae87e41f8f6a58207506796fee (diff)
downloadllvm-ed4e6e03981a37d54c4ac635b2bdb2c2fe8fec92.zip
llvm-ed4e6e03981a37d54c4ac635b2bdb2c2fe8fec92.tar.gz
llvm-ed4e6e03981a37d54c4ac635b2bdb2c2fe8fec92.tar.bz2
[cmake] Remove LLVM_ENABLE_NEW_PASS_MANAGER cmake option
Or rather, error out if it is set to something other than ON. This removes the ability to enable the legacy pass manager by default, but does not remove the ability to explicitly enable it through various flags like -flegacy-pass-manager or -enable-new-pm=0. I checked, and our test suite definitely doesn't pass with LLVM_ENABLE_NEW_PASS_MANAGER=OFF anymore. Differential Revision: https://reviews.llvm.org/D123126
Diffstat (limited to 'llvm/tools/gold')
-rw-r--r--llvm/tools/gold/gold-plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp
index 180c181..0477a15 100644
--- a/llvm/tools/gold/gold-plugin.cpp
+++ b/llvm/tools/gold/gold-plugin.cpp
@@ -201,7 +201,7 @@ namespace options {
// Sample profile file path
static std::string sample_profile;
// New pass manager
- static bool new_pass_manager = LLVM_ENABLE_NEW_PASS_MANAGER;
+ static bool new_pass_manager = true;
// Debug new pass manager
static bool debug_pass_manager = false;
// Directory to store the .dwo files.