[clang] 69b2b72 - [clang] Remove no-op -fexperimental-new-pass-manager/-fno-legacy-pass-manager flags

Arthur Eubanks via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 28 10:24:08 PDT 2022


Author: Arthur Eubanks
Date: 2022-10-28T10:24:00-07:00
New Revision: 69b2b7282e92a1b576b7bd26f3b16716a5027e8e

URL: https://github.com/llvm/llvm-project/commit/69b2b7282e92a1b576b7bd26f3b16716a5027e8e
DIFF: https://github.com/llvm/llvm-project/commit/69b2b7282e92a1b576b7bd26f3b16716a5027e8e.diff

LOG: [clang] Remove no-op -fexperimental-new-pass-manager/-fno-legacy-pass-manager flags

These have been no-op for a while and keeping them around may be confusing.

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D136789

Added: 
    

Modified: 
    clang/docs/ReleaseNotes.rst
    clang/include/clang/Driver/Options.td

Removed: 
    clang/test/Driver/flegacy-pass-manager.c


################################################################################
diff  --git a/clang/docs/ReleaseNotes.rst b/clang/docs/ReleaseNotes.rst
index edf31b90a74c..3896c6120612 100644
--- a/clang/docs/ReleaseNotes.rst
+++ b/clang/docs/ReleaseNotes.rst
@@ -158,6 +158,8 @@ code bases.
       }
     }
 
+  - The ``-fexperimental-new-pass-manager`` and ``-fno-legacy-pass-manager``
+    flags have been removed. These have been no-ops since 15.0.0.
 
 What's New in Clang |release|?
 ==============================

diff  --git a/clang/include/clang/Driver/Options.td b/clang/include/clang/Driver/Options.td
index efbc758c84f7..048f28295b39 100644
--- a/clang/include/clang/Driver/Options.td
+++ b/clang/include/clang/Driver/Options.td
@@ -2014,10 +2014,6 @@ def fglobal_isel : Flag<["-"], "fglobal-isel">, Group<f_clang_Group>,
   HelpText<"Enables the global instruction selector">;
 def fexperimental_isel : Flag<["-"], "fexperimental-isel">, Group<f_clang_Group>,
   Alias<fglobal_isel>;
-def fno_legacy_pass_manager : Flag<["-"], "fno-legacy-pass-manager">,
-  Group<f_clang_Group>, Flags<[CC1Option, NoArgumentUnused]>;
-def fexperimental_new_pass_manager : Flag<["-"], "fexperimental-new-pass-manager">,
-  Group<f_clang_Group>, Flags<[CC1Option]>, Alias<fno_legacy_pass_manager>;
 def fexperimental_strict_floating_point : Flag<["-"], "fexperimental-strict-floating-point">,
   Group<f_clang_Group>, Flags<[CC1Option]>,
   HelpText<"Enables experimental strict floating point in LLVM.">,

diff  --git a/clang/test/Driver/flegacy-pass-manager.c b/clang/test/Driver/flegacy-pass-manager.c
deleted file mode 100644
index 88f6417b165b..000000000000
--- a/clang/test/Driver/flegacy-pass-manager.c
+++ /dev/null
@@ -1,13 +0,0 @@
-/// -fno-legacy-pass-manager and -fexperimental-new-pass-manager are retained
-// as no-ops. The inverted options are no longer supported.
-
-// RUN: %clang -### -c -fno-legacy-pass-manager %s 2>&1 | FileCheck %s
-// RUN: not %clang -### -flegacy-pass-manager %s
-
-// RUN: %clang -### -c -fexperimental-new-pass-manager %s 2>&1 | FileCheck %s
-// RUN: not %clang -### -fno-experimental-new-pass-manager %s
-
-// Just check that there is no argument unused warning. There is no need to
-// pass any cc1 options.
-
-// CHECK-NOT: warning: argument unused


        


More information about the cfe-commits mailing list