[llvm-commits] CVS: llvm/tools/llvm-nm/llvm-nm.cpp
Brian Gaeke
gaeke at cs.uiuc.edu
Wed Nov 19 16:17:03 PST 2003
Changes in directory llvm/tools/llvm-nm:
llvm-nm.cpp updated: 1.10 -> 1.11
---
Log message:
Unbreak the "-" as filename hack.
---
Diffs of the changes: (+3 -2)
Index: llvm/tools/llvm-nm/llvm-nm.cpp
diff -u llvm/tools/llvm-nm/llvm-nm.cpp:1.10 llvm/tools/llvm-nm/llvm-nm.cpp:1.11
--- llvm/tools/llvm-nm/llvm-nm.cpp:1.10 Wed Nov 19 15:57:30 2003
+++ llvm/tools/llvm-nm/llvm-nm.cpp Wed Nov 19 16:15:00 2003
@@ -114,12 +114,13 @@
void DumpSymbolNamesFromFile (std::string &Filename) {
std::string ErrorMessage;
- if (!FileOpenable (Filename)) {
+ if (Filename != "-" && !FileOpenable (Filename)) {
std::cerr << ToolName << ": " << Filename << ": " << strerror (errno)
<< "\n";
return;
}
- if (IsBytecode (Filename)) {
+ // Note: Currently we do not support reading an archive from stdin.
+ if (Filename == "-" || IsBytecode (Filename)) {
Module *Result = ParseBytecodeFile(Filename, &ErrorMessage);
if (Result) {
DumpSymbolNamesFromModule (Result);
More information about the llvm-commits
mailing list