diff options
author | Brian Gaeke <gaeke@uiuc.edu> | 2003-11-19 21:57:30 +0000 |
---|---|---|
committer | Brian Gaeke <gaeke@uiuc.edu> | 2003-11-19 21:57:30 +0000 |
commit | 820428711f651a6ae6b9caf78ae170a4434d1670 (patch) | |
tree | 011649171c005e90dc45d4f41482978b8f459239 /tools | |
parent | 08d03c79a238dba0ea7b59b38304c431bd392432 (diff) | |
download | external_llvm-820428711f651a6ae6b9caf78ae170a4434d1670.zip external_llvm-820428711f651a6ae6b9caf78ae170a4434d1670.tar.gz external_llvm-820428711f651a6ae6b9caf78ae170a4434d1670.tar.bz2 |
Also print an error msg. for files we cannot currently deal with.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10097 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools')
-rw-r--r-- | tools/llvm-nm/llvm-nm.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/llvm-nm/llvm-nm.cpp b/tools/llvm-nm/llvm-nm.cpp index 49148a9..8f543cf 100644 --- a/tools/llvm-nm/llvm-nm.cpp +++ b/tools/llvm-nm/llvm-nm.cpp @@ -136,6 +136,10 @@ void DumpSymbolNamesFromFile (std::string &Filename) { } MultipleFiles = true; std::for_each (Modules.begin (), Modules.end (), DumpSymbolNamesFromModule); + } else { + std::cerr << ToolName << ": " << Filename << ": " + << "unrecognizable file type\n"; + return; } } |