From 29e9022fe8f08ebf33452eda1090b1fbc7a0cdf7 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Wed, 25 Jan 2023 12:26:57 +0100 Subject: [gold] Remove no-opaque-pointers option The opaque-pointers option is retained as a no-op, same as with new-pass-manager. --- llvm/tools/gold/gold-plugin.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'llvm/tools/gold') 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 createLTO(IndexWriteCallback OnIndexWrite, Conf.HasWholeProgramVisibility = options::whole_program_visibility; - Conf.OpaquePointers = options::opaque_pointers; - Conf.StatsFile = options::stats_file; return std::make_unique(std::move(Conf), Backend, options::ParallelCodeGenParallelismLevel); -- cgit v1.1