[llvm-commits] CVS: llvm/lib/Support/CommandLine.cpp
Jim Laskey
jlaskey at apple.com
Wed Aug 2 13:16:15 PDT 2006
Changes in directory llvm/lib/Support:
CommandLine.cpp updated: 1.70 -> 1.71
---
Log message:
If the Program name was NULL then all further output sent to std::cerr was
suppressed.
---
Diffs of the changes: (+3 -1)
CommandLine.cpp | 4 +++-
1 files changed, 3 insertions(+), 1 deletion(-)
Index: llvm/lib/Support/CommandLine.cpp
diff -u llvm/lib/Support/CommandLine.cpp:1.70 llvm/lib/Support/CommandLine.cpp:1.71
--- llvm/lib/Support/CommandLine.cpp:1.70 Tue Jul 18 18:59:33 2006
+++ llvm/lib/Support/CommandLine.cpp Wed Aug 2 15:15:56 2006
@@ -616,7 +616,9 @@
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;
}
More information about the llvm-commits
mailing list