diff options
author | Nikita Popov <npopov@redhat.com> | 2022-04-07 11:30:08 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2022-04-08 10:33:35 +0200 |
commit | 6ec8c6fc7b30bb770cf3e454a89ebd2be1bed88e (patch) | |
tree | e079e34111cf27b5268abd9aa3f96aa77032206b /llvm/tools/gold | |
parent | f922dbb7923f73bab058d09346a2ec0b40ae3cb2 (diff) | |
download | llvm-6ec8c6fc7b30bb770cf3e454a89ebd2be1bed88e.zip llvm-6ec8c6fc7b30bb770cf3e454a89ebd2be1bed88e.tar.gz llvm-6ec8c6fc7b30bb770cf3e454a89ebd2be1bed88e.tar.bz2 |
[gold] Remove support for legacy pass manager
This removes support for performing LTO using the legacy pass
manager in LLVMgold.so. Explicitly enabling the new pass manager
is retained as a no-op.
Differential Revision: https://reviews.llvm.org/D123294
Diffstat (limited to 'llvm/tools/gold')
-rw-r--r-- | llvm/tools/gold/gold-plugin.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/llvm/tools/gold/gold-plugin.cpp b/llvm/tools/gold/gold-plugin.cpp index 0477a15..019bfe0 100644 --- a/llvm/tools/gold/gold-plugin.cpp +++ b/llvm/tools/gold/gold-plugin.cpp @@ -200,8 +200,6 @@ namespace options { static std::vector<const char *> extra; // Sample profile file path static std::string sample_profile; - // 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. @@ -287,9 +285,7 @@ namespace options { } else if (opt.consume_front("cs-profile-path=")) { cs_profile_path = std::string(opt); } else if (opt == "new-pass-manager") { - new_pass_manager = true; - } else if (opt == "legacy-pass-manager") { - new_pass_manager = false; + // We always use the new pass manager. } else if (opt == "debug-pass-manager") { debug_pass_manager = true; } else if (opt == "whole-program-visibility") { @@ -956,8 +952,6 @@ static std::unique_ptr<LTO> createLTO(IndexWriteCallback OnIndexWrite, Conf.RemarksHotnessThreshold = options::RemarksHotnessThreshold; Conf.RemarksFormat = options::RemarksFormat; - // Use new pass manager if set in driver - Conf.UseNewPM = options::new_pass_manager; // Debug new pass manager if requested Conf.DebugPassManager = options::debug_pass_manager; |