[llvm] [llvm-ml] Adds /quiet flag to llvm-ml (PR #107308)
Matt Bolitho via llvm-commits
llvm-commits at lists.llvm.org
Thu Sep 5 10:01:57 PDT 2024
https://github.com/MattBolitho updated https://github.com/llvm/llvm-project/pull/107308
>From c1f4a200a64ab0ba64b4c7f32c41f524abd1034a Mon Sep 17 00:00:00 2001
From: Matt Bolitho <matt.bolitho.software at gmail.com>
Date: Mon, 2 Sep 2024 23:44:26 +0100
Subject: [PATCH 1/2] Adds /quiet flag to llvm-ml
---
llvm/tools/llvm-ml/Opts.td | 1 +
1 file changed, 1 insertion(+)
diff --git a/llvm/tools/llvm-ml/Opts.td b/llvm/tools/llvm-ml/Opts.td
index 686edded23b853..8b748bb64b278b 100644
--- a/llvm/tools/llvm-ml/Opts.td
+++ b/llvm/tools/llvm-ml/Opts.td
@@ -72,6 +72,7 @@ def define : MLJoinedOrSeparate<"D">, MetaVarName<"<macro>=<value>">,
HelpText<"Define <macro> to <value> (or blank if <value> "
"omitted)">;
def no_logo : MLFlag<"nologo">, HelpText<"">;
+def quiet : MLFlag<"quiet">, HelpText<"">;
def output_file : MLJoinedOrSeparate<"Fo">, HelpText<"Names the output file">;
def include_path : MLJoinedOrSeparate<"I">,
HelpText<"Sets path for include files">;
>From e364f3687946ddba0aa9ddc33e7c2a80372d2ab6 Mon Sep 17 00:00:00 2001
From: Matt Bolitho <matt.bolitho.software at gmail.com>
Date: Thu, 5 Sep 2024 17:59:21 +0100
Subject: [PATCH 2/2] Adds test for usage with /quiet and /nologo
---
llvm/test/tools/llvm-ml/run.asm | 1 +
1 file changed, 1 insertion(+)
diff --git a/llvm/test/tools/llvm-ml/run.asm b/llvm/test/tools/llvm-ml/run.asm
index 0e4f2bf137f18a..11e2d72ae06c2d 100644
--- a/llvm/test/tools/llvm-ml/run.asm
+++ b/llvm/test/tools/llvm-ml/run.asm
@@ -1,3 +1,4 @@
; RUN: llvm-ml --help | FileCheck %s
+; RUN: llvm-ml /nologo /quiet
; CHECK: USAGE: llvm-ml
More information about the llvm-commits
mailing list