diff options
author | Jim Laskey <jlaskey@mac.com> | 2006-08-02 20:15:56 +0000 |
---|---|---|
committer | Jim Laskey <jlaskey@mac.com> | 2006-08-02 20:15:56 +0000 |
commit | 82cd9c513ea1ee22cde3b7f51b698b39a7587053 (patch) | |
tree | 9a77c3a38978f8bf7a81eadc2cabea030d737f66 /llvm/lib/Support/CommandLine.cpp | |
parent | 942f217d99b05bd490537a73872a965d3e59c700 (diff) | |
download | bcm5719-llvm-82cd9c513ea1ee22cde3b7f51b698b39a7587053.tar.gz bcm5719-llvm-82cd9c513ea1ee22cde3b7f51b698b39a7587053.zip |
If the Program name was NULL then all further output sent to std::cerr was
suppressed.
llvm-svn: 29477
Diffstat (limited to 'llvm/lib/Support/CommandLine.cpp')
-rw-r--r-- | llvm/lib/Support/CommandLine.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/Support/CommandLine.cpp b/llvm/lib/Support/CommandLine.cpp index 08b6fcbd590..f7fbef6b728 100644 --- a/llvm/lib/Support/CommandLine.cpp +++ b/llvm/lib/Support/CommandLine.cpp @@ -616,7 +616,9 @@ bool Option::error(std::string Message, const char *ArgName) { if (ArgName[0] == 0) std::cerr << HelpStr; // Be nice for positional arguments else - std::cerr << ProgramName << ": for the -" << ArgName; + std::cerr << (ProgramName ? ProgramName : "***") + << ": for the -" << ArgName; + std::cerr << " option: " << Message << "\n"; return true; } |