diff options
author | Nikita Popov <npopov@redhat.com> | 2023-01-25 12:26:57 +0100 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2023-01-25 12:26:57 +0100 |
commit | 29e9022fe8f08ebf33452eda1090b1fbc7a0cdf7 (patch) | |
tree | f872a2ad5fdaa0e28e917f3b542a7f413fc1ce06 /llvm/tools/gold | |
parent | fb6c1300f23f249aa29eb6c5325aebc7d61d7345 (diff) | |
download | llvm-29e9022fe8f08ebf33452eda1090b1fbc7a0cdf7.zip llvm-29e9022fe8f08ebf33452eda1090b1fbc7a0cdf7.tar.gz llvm-29e9022fe8f08ebf33452eda1090b1fbc7a0cdf7.tar.bz2 |
[gold] Remove no-opaque-pointers option
The opaque-pointers option is retained as a no-op, same as with
new-pass-manager.
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 939dbaf..90146fb 100644 --- a/llvm/tools/gold/gold-plugin.cpp +++ b/llvm/tools/gold/gold-plugin.cpp @@ -208,8 +208,6 @@ namespace options { static std::string stats_file; // Asserts that LTO link has whole program visibility static bool whole_program_visibility = false; - // Use opaque pointer types. - static bool opaque_pointers = true; // Optimization remarks filename, accepted passes and hotness options static std::string RemarksFilename; @@ -311,9 +309,7 @@ namespace options { } else if (opt.consume_front("stats-file=")) { stats_file = std::string(opt); } else if (opt == "opaque-pointers") { - opaque_pointers = true; - } else if (opt == "no-opaque-pointers") { - opaque_pointers = false; + // We always use opaque pointers. } else { // Save this option to pass to the code generator. // ParseCommandLineOptions() expects argv[0] to be program name. Lazily @@ -960,8 +956,6 @@ static std::unique_ptr<LTO> createLTO(IndexWriteCallback OnIndexWrite, Conf.HasWholeProgramVisibility = options::whole_program_visibility; - Conf.OpaquePointers = options::opaque_pointers; - Conf.StatsFile = options::stats_file; return std::make_unique<LTO>(std::move(Conf), Backend, options::ParallelCodeGenParallelismLevel); |