projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7210f9
)
If the Program name was NULL then all further output sent to std::cerr was
author
Jim Laskey
<jlaskey@mac.com>
Wed, 2 Aug 2006 20:15:56 +0000
(20:15 +0000)
committer
Jim Laskey
<jlaskey@mac.com>
Wed, 2 Aug 2006 20:15:56 +0000
(20:15 +0000)
suppressed.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29477
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Support/CommandLine.cpp
patch
|
blob
|
history
diff --git
a/lib/Support/CommandLine.cpp
b/lib/Support/CommandLine.cpp
index 08b6fcbd590372c4cbc6038c0c2e09246ed44e97..f7fbef6b72862b83467ed4fa2ae94107ea786065 100644
(file)
--- a/
lib/Support/CommandLine.cpp
+++ b/
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;
}