summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Support/CommandLine.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2008-10-14 20:25:08 +0000
committerDan Gohman <gohman@apple.com>2008-10-14 20:25:08 +0000
commit9c4b7d5c4f38ee34f05affbcae478104325e5a1d (patch)
treebf4bd1230af2c6640083872b99a9317f296724dc /llvm/lib/Support/CommandLine.cpp
parentc064d4edc49866c5b4a7043ce6b2d3c1b278f879 (diff)
downloadbcm5719-llvm-9c4b7d5c4f38ee34f05affbcae478104325e5a1d.tar.gz
bcm5719-llvm-9c4b7d5c4f38ee34f05affbcae478104325e5a1d.zip
Fix command-line option printing to print two spaces where needed,
instead of requiring all "short description" strings to begin with two spaces. This makes these strings less mysterious, and it fixes some cases where short description strings mistakenly did not begin with two spaces. llvm-svn: 57521
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r--llvm/lib/Support/CommandLine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp
index 571b0338677..498131390c3 100644
--- a/llvm/lib/Support/CommandLine.cpp
+++ b/llvm/lib/Support/CommandLine.cpp
@@ -953,7 +953,7 @@ void generic_parser_base::printOptionInfo(const Option &O,
for (unsigned i = 0, e = getNumOptions(); i != e; ++i) {
size_t NumSpaces = GlobalWidth-strlen(getOption(i))-8;
cout << " =" << getOption(i) << std::string(NumSpaces, ' ')
- << " - " << getDescription(i) << "\n";
+ << " - " << getDescription(i) << "\n";
}
} else {
if (O.HelpStr[0])
OpenPOWER on IntegriCloud