From 6669b6c51157ca72702e8155b4f416accb0eef1a Mon Sep 17 00:00:00 2001 From: Brian Gaeke Date: Wed, 19 Nov 2003 21:57:30 +0000 Subject: [PATCH] Also print an error msg. for files we cannot currently deal with. llvm-svn: 10097 --- tools/llvm-nm/llvm-nm.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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; } }