Skip to content

Commit ec636cf

Browse files
[llvm-split][nfc] Harmonize help and error message (#120062)
Somme error / help message refer to options with a single dash while help refer to options with a double dash.
1 parent e5521fa commit ec636cf

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

llvm/test/tools/llvm-split/target-specific-split.ll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
; Basic test for a target that doesn't support target-specific module splitting.
66

7-
; CHECK: warning: -preserve-locals has no effect when using TargetMachine::splitModule
7+
; CHECK: warning: --preserve-locals has no effect when using TargetMachine::splitModule
88
; CHECK: warning: TargetMachine::splitModule failed, falling back to default splitModule implementation
99

1010
define void @bar() {

llvm/tools/llvm-split/llvm-split.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ static cl::opt<std::string>
6767
cl::value_desc("triple"), cl::cat(SplitCategory));
6868

6969
static cl::opt<std::string>
70-
MCPU("mcpu", cl::desc("Target CPU, ignored if -mtriple is not used"),
70+
MCPU("mcpu", cl::desc("Target CPU, ignored if --mtriple is not used"),
7171
cl::value_desc("cpu"), cl::cat(SplitCategory));
7272

7373
int main(int argc, char **argv) {
@@ -125,11 +125,11 @@ int main(int argc, char **argv) {
125125

126126
if (TM) {
127127
if (PreserveLocals) {
128-
errs() << "warning: -preserve-locals has no effect when using "
128+
errs() << "warning: --preserve-locals has no effect when using "
129129
"TargetMachine::splitModule\n";
130130
}
131131
if (RoundRobin)
132-
errs() << "warning: -round-robin has no effect when using "
132+
errs() << "warning: --round-robin has no effect when using "
133133
"TargetMachine::splitModule\n";
134134

135135
if (TM->splitModule(*M, NumOutputs, HandleModulePart))

0 commit comments

Comments
 (0)