[llvm] [llvm-split][nfc] Harmonize help and error message (PR #120062)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 16 06:12:25 PST 2024
https://github.com/serge-sans-paille updated https://github.com/llvm/llvm-project/pull/120062
>From 6379bbbdc06afec9e0ea22d383d127fc8a6d91c3 Mon Sep 17 00:00:00 2001
From: serge-sans-paille <sguelton at mozilla.com>
Date: Mon, 16 Dec 2024 10:51:53 +0100
Subject: [PATCH] [llvm-split][nfc] Harmonize help and error message
Somme error / help message refer to options with a single dash while
help refer to options with a double dash.
---
llvm/test/tools/llvm-split/target-specific-split.ll | 2 +-
llvm/tools/llvm-split/llvm-split.cpp | 6 +++---
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/llvm/test/tools/llvm-split/target-specific-split.ll b/llvm/test/tools/llvm-split/target-specific-split.ll
index f368a563d977b9..030fc0126646cc 100644
--- a/llvm/test/tools/llvm-split/target-specific-split.ll
+++ b/llvm/test/tools/llvm-split/target-specific-split.ll
@@ -4,7 +4,7 @@
; Basic test for a target that doesn't support target-specific module splitting.
-; CHECK: warning: -preserve-locals has no effect when using TargetMachine::splitModule
+; CHECK: warning: --preserve-locals has no effect when using TargetMachine::splitModule
; CHECK: warning: TargetMachine::splitModule failed, falling back to default splitModule implementation
define void @bar() {
diff --git a/llvm/tools/llvm-split/llvm-split.cpp b/llvm/tools/llvm-split/llvm-split.cpp
index c456403e6bc68d..1b1f97f44e2742 100644
--- a/llvm/tools/llvm-split/llvm-split.cpp
+++ b/llvm/tools/llvm-split/llvm-split.cpp
@@ -67,7 +67,7 @@ static cl::opt<std::string>
cl::value_desc("triple"), cl::cat(SplitCategory));
static cl::opt<std::string>
- MCPU("mcpu", cl::desc("Target CPU, ignored if -mtriple is not used"),
+ MCPU("mcpu", cl::desc("Target CPU, ignored if --mtriple is not used"),
cl::value_desc("cpu"), cl::cat(SplitCategory));
int main(int argc, char **argv) {
@@ -125,11 +125,11 @@ int main(int argc, char **argv) {
if (TM) {
if (PreserveLocals) {
- errs() << "warning: -preserve-locals has no effect when using "
+ errs() << "warning: --preserve-locals has no effect when using "
"TargetMachine::splitModule\n";
}
if (RoundRobin)
- errs() << "warning: -round-robin has no effect when using "
+ errs() << "warning: --round-robin has no effect when using "
"TargetMachine::splitModule\n";
if (TM->splitModule(*M, NumOutputs, HandleModulePart))
More information about the llvm-commits
mailing list