Changes in directory llvm/tools/llvm-nm:
Makefile updated: 1.10 -> 1.11 llvm-nm.cpp updated: 1.34 -> 1.35 --- Log message: switch tools to bitcode instead of bytecode --- Diffs of the changes: (+3 -16) Makefile | 2 +- llvm-nm.cpp | 17 ++--------------- 2 files changed, 3 insertions(+), 16 deletions(-) Index: llvm/tools/llvm-nm/Makefile diff -u llvm/tools/llvm-nm/Makefile:1.10 llvm/tools/llvm-nm/Makefile:1.11 --- llvm/tools/llvm-nm/Makefile:1.10 Sun May 6 00:36:18 2007 +++ llvm/tools/llvm-nm/Makefile Sun May 6 04:29:57 2007 @@ -9,6 +9,6 @@ LEVEL = ../.. TOOLNAME = llvm-nm -LINK_COMPONENTS = archive bcreader bitreader +LINK_COMPONENTS = archive bitreader include $(LEVEL)/Makefile.common Index: llvm/tools/llvm-nm/llvm-nm.cpp diff -u llvm/tools/llvm-nm/llvm-nm.cpp:1.34 llvm/tools/llvm-nm/llvm-nm.cpp:1.35 --- llvm/tools/llvm-nm/llvm-nm.cpp:1.34 Sun May 6 00:36:18 2007 +++ llvm/tools/llvm-nm/llvm-nm.cpp Sun May 6 04:29:57 2007 @@ -18,8 +18,7 @@ #include "llvm/Module.h" #include "llvm/Bitcode/ReaderWriter.h" -#include "llvm/Bytecode/Reader.h" -#include "llvm/Bytecode/Archive.h" +#include "llvm/Bitcode/Archive.h" #include "llvm/Support/CommandLine.h" #include "llvm/Support/ManagedStatic.h" #include "llvm/Support/MemoryBuffer.h" @@ -31,8 +30,6 @@ #include <iostream> using namespace llvm; -cl::opt<bool> Bitcode("bitcode"); - namespace { enum OutputFormatTy { bsd, sysv, posix }; cl::opt<OutputFormatTy> @@ -125,17 +122,7 @@ std::string ErrorMessage; sys::Path aPath(Filename); // Note: Currently we do not support reading an archive from stdin. - if (Filename == "-" || aPath.isBytecodeFile()) { - Module *Result = ParseBytecodeFile(Filename, - Compressor::decompressToNewBuffer, - &ErrorMessage); - if (Result) { - DumpSymbolNamesFromModule (Result); - } else { - std::cerr << ToolName << ": " << Filename << ": " << ErrorMessage << "\n"; - return; - } - } else if (aPath.isBitcodeFile()) { + if (Filename == "-" || aPath.isBitcodeFile()) { std::auto_ptr<MemoryBuffer> Buffer( MemoryBuffer::getFileOrSTDIN(&Filename[0], Filename.size())); Module *Result = 0; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits