Move the space in overview output for commands out of each of the

commands and into the common code.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@42752 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Dan Gohman 2007-10-08 15:45:12 +00:00
parent 8e41ed7c4e
commit 82a13c9c48
19 changed files with 19 additions and 19 deletions

View File

@ -951,7 +951,7 @@ public:
} }
if (ProgramOverview) if (ProgramOverview)
cout << "OVERVIEW:" << ProgramOverview << "\n"; cout << "OVERVIEW: " << ProgramOverview << "\n";
cout << "USAGE: " << ProgramName << " [options]"; cout << "USAGE: " << ProgramName << " [options]";

View File

@ -66,7 +66,7 @@ static void BugpointInterruptFunction() {
int main(int argc, char **argv) { int main(int argc, char **argv) {
llvm_shutdown_obj X; // Call llvm_shutdown() on exit. llvm_shutdown_obj X; // Call llvm_shutdown() on exit.
cl::ParseCommandLineOptions(argc, argv, cl::ParseCommandLineOptions(argc, argv,
" LLVM automatic testcase reducer. See\nhttp://" "LLVM automatic testcase reducer. See\nhttp://"
"llvm.org/docs/CommandGuide/bugpoint.html" "llvm.org/docs/CommandGuide/bugpoint.html"
" for more information.\n"); " for more information.\n");
sys::PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();

View File

@ -172,7 +172,7 @@ static std::ostream *GetOutputStream(const char *ProgName) {
// //
int main(int argc, char **argv) { int main(int argc, char **argv) {
llvm_shutdown_obj X; // Call llvm_shutdown() on exit. llvm_shutdown_obj X; // Call llvm_shutdown() on exit.
cl::ParseCommandLineOptions(argc, argv, " llvm system compiler\n"); cl::ParseCommandLineOptions(argc, argv, "llvm system compiler\n");
sys::PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();
// Load the module to be compiled... // Load the module to be compiled...

View File

@ -67,7 +67,7 @@ static void do_shutdown() {
int main(int argc, char **argv, char * const *envp) { int main(int argc, char **argv, char * const *envp) {
atexit(do_shutdown); // Call llvm_shutdown() on exit. atexit(do_shutdown); // Call llvm_shutdown() on exit.
cl::ParseCommandLineOptions(argc, argv, cl::ParseCommandLineOptions(argc, argv,
" llvm interpreter & dynamic compiler\n"); "llvm interpreter & dynamic compiler\n");
sys::PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();
// If the user doesn't want core files, disable them. // If the user doesn't want core files, disable them.

View File

@ -690,7 +690,7 @@ int main(int argc, char **argv) {
// Have the command line options parsed and handle things // Have the command line options parsed and handle things
// like --help and --version. // like --help and --version.
cl::ParseCommandLineOptions(argc, argv, cl::ParseCommandLineOptions(argc, argv,
" LLVM Archiver (llvm-ar)\n\n" "LLVM Archiver (llvm-ar)\n\n"
" This program archives bitcode files into single libraries\n" " This program archives bitcode files into single libraries\n"
); );

View File

@ -48,7 +48,7 @@ DisableVerify("disable-verify", cl::Hidden,
int main(int argc, char **argv) { int main(int argc, char **argv) {
llvm_shutdown_obj X; // Call llvm_shutdown() on exit. llvm_shutdown_obj X; // Call llvm_shutdown() on exit.
cl::ParseCommandLineOptions(argc, argv, " llvm .ll -> .bc assembler\n"); cl::ParseCommandLineOptions(argc, argv, "llvm .ll -> .bc assembler\n");
sys::PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();
int exitCode = 0; int exitCode = 0;

View File

@ -496,7 +496,7 @@ static int AnalyzeBitcode() {
int main(int argc, char **argv) { int main(int argc, char **argv) {
llvm_shutdown_obj X; // Call llvm_shutdown() on exit. llvm_shutdown_obj X; // Call llvm_shutdown() on exit.
cl::ParseCommandLineOptions(argc, argv, " llvm-bcanalyzer file analyzer\n"); cl::ParseCommandLineOptions(argc, argv, "llvm-bcanalyzer file analyzer\n");
sys::PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();

View File

@ -53,7 +53,7 @@ int main(int argc, char **argv, char * const *envp) {
std::cout << "NOTE: llvm-db is known useless right now.\n"; std::cout << "NOTE: llvm-db is known useless right now.\n";
try { try {
cl::ParseCommandLineOptions(argc, argv, cl::ParseCommandLineOptions(argc, argv,
" llvm source-level debugger\n"); "llvm source-level debugger\n");
sys::PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();
if (!Quiet) if (!Quiet)

View File

@ -46,7 +46,7 @@ DontPrint("disable-output", cl::desc("Don't output the .ll file"), cl::Hidden);
int main(int argc, char **argv) { int main(int argc, char **argv) {
llvm_shutdown_obj X; // Call llvm_shutdown() on exit. llvm_shutdown_obj X; // Call llvm_shutdown() on exit.
try { try {
cl::ParseCommandLineOptions(argc, argv, " llvm .bc -> .ll disassembler\n"); cl::ParseCommandLineOptions(argc, argv, "llvm .bc -> .ll disassembler\n");
sys::PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();
std::ostream *Out = &std::cout; // Default to printing to stdout. std::ostream *Out = &std::cout; // Default to printing to stdout.

View File

@ -52,7 +52,7 @@ ExtractFunc("func", cl::desc("Specify function to extract"), cl::init("main"),
int main(int argc, char **argv) { int main(int argc, char **argv) {
llvm_shutdown_obj X; // Call llvm_shutdown() on exit. llvm_shutdown_obj X; // Call llvm_shutdown() on exit.
cl::ParseCommandLineOptions(argc, argv, " llvm extractor\n"); cl::ParseCommandLineOptions(argc, argv, "llvm extractor\n");
sys::PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();
std::auto_ptr<Module> M; std::auto_ptr<Module> M;

View File

@ -469,7 +469,7 @@ int main(int argc, char **argv, char **envp) {
progname = sys::Path(argv[0]).getBasename(); progname = sys::Path(argv[0]).getBasename();
// Parse the command line options // Parse the command line options
cl::ParseCommandLineOptions(argc, argv, " llvm linker\n"); cl::ParseCommandLineOptions(argc, argv, "llvm linker\n");
sys::PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();
// Construct a Linker (now that Verbose is set) // Construct a Linker (now that Verbose is set)

View File

@ -79,7 +79,7 @@ static inline std::auto_ptr<Module> LoadFile(const std::string &FN) {
int main(int argc, char **argv) { int main(int argc, char **argv) {
llvm_shutdown_obj X; // Call llvm_shutdown() on exit. llvm_shutdown_obj X; // Call llvm_shutdown() on exit.
cl::ParseCommandLineOptions(argc, argv, " llvm linker\n"); cl::ParseCommandLineOptions(argc, argv, "llvm linker\n");
sys::PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();
assert(InputFilenames.size() > 0 && "OneOrMore is not working"); assert(InputFilenames.size() > 0 && "OneOrMore is not working");

View File

@ -165,7 +165,7 @@ static void DumpSymbolNamesFromFile(std::string &Filename) {
int main(int argc, char **argv) { int main(int argc, char **argv) {
llvm_shutdown_obj X; // Call llvm_shutdown() on exit. llvm_shutdown_obj X; // Call llvm_shutdown() on exit.
cl::ParseCommandLineOptions(argc, argv, " llvm symbol table dumper\n"); cl::ParseCommandLineOptions(argc, argv, "llvm symbol table dumper\n");
sys::PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();
ToolName = argv[0]; ToolName = argv[0];

View File

@ -112,7 +112,7 @@ namespace {
int main(int argc, char **argv) { int main(int argc, char **argv) {
llvm_shutdown_obj X; // Call llvm_shutdown() on exit. llvm_shutdown_obj X; // Call llvm_shutdown() on exit.
try { try {
cl::ParseCommandLineOptions(argc, argv, " llvm profile dump decoder\n"); cl::ParseCommandLineOptions(argc, argv, "llvm profile dump decoder\n");
sys::PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();
// Read in the bitcode file... // Read in the bitcode file...

View File

@ -47,7 +47,7 @@ int main(int argc, char **argv) {
// Have the command line options parsed and handle things // Have the command line options parsed and handle things
// like --help and --version. // like --help and --version.
cl::ParseCommandLineOptions(argc, argv, cl::ParseCommandLineOptions(argc, argv,
" LLVM Archive Index Generator (llvm-ranlib)\n\n" "LLVM Archive Index Generator (llvm-ranlib)\n\n"
" This program adds or updates an index of bitcode symbols\n" " This program adds or updates an index of bitcode symbols\n"
" to an LLVM archive file." " to an LLVM archive file."
); );

View File

@ -51,7 +51,7 @@ Debug("debug-upgrade-yacc", cl::desc("Print debug output from yacc parser"),
int main(int argc, char **argv) { int main(int argc, char **argv) {
llvm_shutdown_obj X; // Call llvm_shutdown() on exit. llvm_shutdown_obj X; // Call llvm_shutdown() on exit.
cl::ParseCommandLineOptions(argc, argv, " llvm .ll -> .bc assembler\n"); cl::ParseCommandLineOptions(argc, argv, "llvm .ll -> .bc assembler\n");
sys::PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();
int exitCode = 0; int exitCode = 0;

View File

@ -43,7 +43,7 @@ Force("f", cl::desc("Overwrite output files"));
int main(int argc, char **argv) { int main(int argc, char **argv) {
llvm_shutdown_obj X; // Call llvm_shutdown() on exit. llvm_shutdown_obj X; // Call llvm_shutdown() on exit.
cl::ParseCommandLineOptions(argc, argv, " llvm .ll -> .cpp assembler\n"); cl::ParseCommandLineOptions(argc, argv, "llvm .ll -> .cpp assembler\n");
sys::PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();
int exitCode = 0; int exitCode = 0;

View File

@ -257,7 +257,7 @@ int main(int argc, char **argv) {
// Parse the command line options // Parse the command line options
cl::ParseCommandLineOptions(argc, argv, cl::ParseCommandLineOptions(argc, argv,
" LLVM Compiler Driver (llvmc)\n\n" "LLVM Compiler Driver (llvmc)\n\n"
" This program provides easy invocation of the LLVM tool set\n" " This program provides easy invocation of the LLVM tool set\n"
" and other compiler tools.\n" " and other compiler tools.\n"
); );

View File

@ -308,7 +308,7 @@ int main(int argc, char **argv) {
llvm_shutdown_obj X; // Call llvm_shutdown() on exit. llvm_shutdown_obj X; // Call llvm_shutdown() on exit.
try { try {
cl::ParseCommandLineOptions(argc, argv, cl::ParseCommandLineOptions(argc, argv,
" llvm .bc -> .bc modular optimizer and analysis printer \n"); "llvm .bc -> .bc modular optimizer and analysis printer\n");
sys::PrintStackTraceOnErrorSignal(); sys::PrintStackTraceOnErrorSignal();
// Allocate a full target machine description only if necessary. // Allocate a full target machine description only if necessary.