[lld] 66dc44f - [lld/COFF] Use P_priv more
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 27 05:48:39 PDT 2021
Author: Nico Weber
Date: 2021-08-27T08:48:05-04:00
New Revision: 66dc44f7037bd3d632ab55ee1aaa39d071abc7c6
URL: https://github.com/llvm/llvm-project/commit/66dc44f7037bd3d632ab55ee1aaa39d071abc7c6
DIFF: https://github.com/llvm/llvm-project/commit/66dc44f7037bd3d632ab55ee1aaa39d071abc7c6.diff
LOG: [lld/COFF] Use P_priv more
P_priv does the same as the old QF further down. Standardize on P_priv.
No behavior change.
Differential Revision: https://reviews.llvm.org/D108798
Added:
Modified:
lld/COFF/Options.td
Removed:
################################################################################
diff --git a/lld/COFF/Options.td b/lld/COFF/Options.td
index ce3392ce9dcb1..940d96c39e99f 100644
--- a/lld/COFF/Options.td
+++ b/lld/COFF/Options.td
@@ -268,9 +268,9 @@ def wrap : P_priv<"wrap">;
// Flags for debugging
def lldmap : F<"lldmap">;
-def lldmap_file : Joined<["/", "-", "/?", "-?"], "lldmap:">;
+def lldmap_file : P_priv<"lldmap">;
def map : F<"map">;
-def map_file : Joined<["/", "-", "/?", "-?"], "map:">;
+def map_file : P_priv<"map">;
def show_timing : F<"time">;
def summary : F<"summary">;
@@ -278,19 +278,17 @@ def summary : F<"summary">;
// The flags below do nothing. They are defined only for link.exe compatibility.
//==============================================================================
-class QF<string name> : Joined<["/", "-", "/?", "-?"], name#":">;
-
def ignoreidl : F<"ignoreidl">;
def nologo : F<"nologo">;
def throwingnew : F<"throwingnew">;
def editandcontinue : F<"editandcontinue">;
def fastfail : F<"fastfail">;
-def delay : QF<"delay">;
-def errorreport : QF<"errorreport">;
-def idlout : QF<"idlout">;
-def maxilksize : QF<"maxilksize">;
-def tlbid : QF<"tlbid">;
-def tlbout : QF<"tlbout">;
-def verbose_all : QF<"verbose">;
-def guardsym : QF<"guardsym">;
+def delay : P_priv<"delay">;
+def errorreport : P_priv<"errorreport">;
+def idlout : P_priv<"idlout">;
+def maxilksize : P_priv<"maxilksize">;
+def tlbid : P_priv<"tlbid">;
+def tlbout : P_priv<"tlbout">;
+def verbose_all : P_priv<"verbose">;
+def guardsym : P_priv<"guardsym">;
More information about the llvm-commits
mailing list