From 80ee9cc2a6d0dc22dbec240b3fad35706888a8db Mon Sep 17 00:00:00 2001 From: Rafael Espindola Date: Sun, 7 Apr 2013 14:30:21 +0000 Subject: [PATCH] Remove dead code. llvm-svn: 178977 --- tools/llvm-objdump/MachODump.cpp | 17 ----------------- 1 file changed, 17 deletions(-) diff --git a/tools/llvm-objdump/MachODump.cpp b/tools/llvm-objdump/MachODump.cpp index ee4711fb340..b122cd3b7ab 100644 --- a/tools/llvm-objdump/MachODump.cpp +++ b/tools/llvm-objdump/MachODump.cpp @@ -273,23 +273,6 @@ void llvm::DisassembleInputMachO(StringRef Filename) { const macho::Header &Header = MachOObj->getHeader(); - const MachOObject::LoadCommandInfo *SymtabLCI = 0; - // First, find the symbol table segment. - for (unsigned i = 0; i != Header.NumLoadCommands; ++i) { - const MachOObject::LoadCommandInfo &LCI = MachOObj->getLoadCommandInfo(i); - if (LCI.Command.Type == macho::LCT_Symtab) { - SymtabLCI = &LCI; - break; - } - } - - // Read and register the symbol table data. - InMemoryStruct SymtabLC; - if (SymtabLCI) { - MachOObj->ReadSymtabLoadCommand(*SymtabLCI, SymtabLC); - MachOObj->RegisterStringTable(*SymtabLC); - } - std::vector Sections; std::vector Symbols; SmallVector FoundFns;