From: Brian Gaeke Date: Wed, 19 Nov 2003 21:57:30 +0000 (+0000) Subject: Also print an error msg. for files we cannot currently deal with. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=820428711f651a6ae6b9caf78ae170a4434d1670;p=oota-llvm.git 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 --- diff --git a/tools/llvm-nm/llvm-nm.cpp b/tools/llvm-nm/llvm-nm.cpp index 49148a9e830..8f543cf6097 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; } }